IntelliJ Java IDE
The moose likes Linux / UNIX and the fly likes help please... Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Reply Bookmark "help please..." Watch "help please..." New topic
Author

help please...

Uma Viswanathan
Ranch Hand

Joined: Jun 14, 2001
Posts: 126
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 in hp-ux 10.20....could anyone help me please?
I tried the following 2 commands in hp-ux, they are also 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

Thanks a lot in advance...
Uma
Mathew Kuruvilla
Ranch Hand

Joined: Nov 27, 2001
Posts: 135
What error message are you getting? Not that I may be able to help, but your question is not complete.
Mathew :roll:
Uma Viswanathan
Ranch Hand

Joined: Jun 14, 2001
Posts: 126
Thanks a lot for the reply...
I could not see any error message. The problem was 'it was not executing the application'. Anyways, i had corrected it now.
 
 
subject: help please...
 
Threads others viewed
javah in hp-ux
JNI problem in hp-ux 10.20
Obfuscating using Yguard
Using a jar in classpath on command line
How To Read a JAR from another JAR??
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com