HP Unix Java

How does java -jar can be execuated in HP Unix?
It keep saying -jar is an illegel argument...
Hope someone can help!
mawinghoAsked:
Who is Participating?
 
CEHJConnect With a Mentor Commented:
What is the full command you're using?
0
 
mawinghoAuthor Commented:
i type
java -jar myApplication.jar

it just cannot run...
0
 
CEHJConnect With a Mentor Commented:
What does just

java

give you?
0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
mawinghoAuthor Commented:
i type java is ok
it provide a list of valid arguemnts
but -jar is not there
-cp also not there
why?
0
 
CEHJConnect With a Mentor Commented:
Could be an ancient version ;) Sounds like it might be time for an update
0
 
mawinghoAuthor Commented:
I don't know
do you have HP Unix?
Can you help?
I am testing a tool on client's computer
and I can only use Java runtime

Do you have HP Unix?
If yes, can you please help?
Can you just use the Java Runtime for HP Unix without installing it?

If yes, which Java Runtime version do you use? Can you please help?
Thanks!
0
 
mawinghoAuthor Commented:
How to set the path and classpath?
0
 
CEHJConnect With a Mentor Commented:
Try the following
java -classpath myApplication.jar foo.bar.Appname

Open in new window

0
 
mawinghoAuthor Commented:
which version of java do you use?
0
 
objectsConnect With a Mentor Commented:
java -version will tell you what version of java you are running
0
 
objectsConnect With a Mentor Commented:
and try "java -help" to get the available options
0
 
mawinghoAuthor Commented:
I mean what version do you use currently, can u let me know?
0
 
CEHJConnect With a Mentor Commented:
I use 1.6
0
 
objectsConnect With a Mentor Commented:
> I mean what version do you use currently, can u let me know?

1.6 is the latest
0
 
mawinghoAuthor Commented:
thank you!
May I know where can I download the Java run tiime package for the following system?

AIX, HP Unix, Sun Solaris
0
 
mawinghoAuthor Commented:
Thank you!
Just one more question.
What path, classpath, and Java HOME, other parameters or environment variables I have to set in Linux, HP Unix, Solaris and IBM AIX?

Thank you!
0
 
CEHJConnect With a Mentor Commented:
Different flavours of Unix have different way of setting variables, so you need to check per platform

CLASSPATH: Not necessary to set this permanently and not really a good idea to do so

JAVA_HOME: Good idea to set this - it's value should  be the installation directory

PATH: java should be on the PATH, so for bash, that would be as below
export PATH=${JAVA_HOME}/bin:${PATH}

Open in new window

0
 
objectsConnect With a Mentor Commented:
> What path, classpath, and Java HOME, other parameters or environment variables I have to set in Linux, HP Unix, Solaris and IBM AIX?

All that needs to be set is the PATH, and generally the install will do that for you
JAVA_HOME is used to point to the JDK so is not applicable for you
And the CLASSPATH list locations to look for classes, preferable to leave this blank unless you have particular locations that need to be searched
0
 
mawinghoAuthor Commented:
thanks
0
 
CEHJCommented:
:)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.