Operating System - HP-UX
1753944 Members
8824 Online
108811 Solutions
New Discussion

Executing an application on hp-ux 10.20 using jdk1.1.8

 
Sri111
Occasional Contributor

Executing an application on hp-ux 10.20 using jdk1.1.8

Hi all:
What is the best way to deliver an application to the customer (in the form of jar file or ...)?

If jar file is the best form, then how shd i create a jar file for my application on hp-ux 10.20

My application is using two other jar files (vendor-provided) say x.jar and y.jar

In win-nt, i created a jar file (say app.jar) using the command from the directory (say proj) which contains all the files needed for this project
c:\proj>jar -cvf app.jar *

Then to execute a class file (say main.class which contains the application's entry point)
C:\proj>java -classpath app.jar;x.jar;y.jar main

The above commands worked in win-nt and it had started the application but these commands are not working properly in hp-ux 10.20....

After i created a jar file, I tried the following 2 commands in hp-ux 10.20, they are NOT working
java -classpath /opt/java/lib/classes.zip:app.jar:x.jar:y.jar main
jre -classpath /opt/java/lib/classes.zip:app.jar:x.jar:y.jar main

These commands are not giving me error...but if i do
ps -lef | grep main, it is not running

If i directly do
jre main, it is running (without creating a jar file)

could anyone help me please? Thanks a lot.
Sr