Operating System - HP-UX
1819684 Members
3435 Online
109605 Solutions
New Discussion юеВ

Java: How to run .jar files

 
Jose_63
New Member

Java: How to run .jar files

Hi all.

I am working in a Compaq Tru64 UNIX V5.1A, with java, version java version "1.1.8-10". I am trying to install a program .jar called "jedit42pre1install.jar", from http://www.jedit.org/index.php?page=download

I am not able to run the .jar program. How can I do it ?

the option java - jar is not available

How do you run a .jar program ?

thanks
jose
4 REPLIES 4
Paddy_1
Valued Contributor

Re: Java: How to run .jar files

jar is similar to tar.

say jar -xvf to extract the jar file.

ideally you want to place the jar in the runtime library so that when you start the JVM it is available to you.
that is at $JAVA/jre/lib/ext

hope this helps
The sufficiency of my merit is to know that my merit is NOT sufficient
Umapathy S
Honored Contributor

Re: Java: How to run .jar files

hi,
Check the version of java you are using.

I think java -jar.

you have to include the jar file in your CLASSPATH. Then run the program by calling the class name which has the main function. In this case, it will be jedit.

HTH
Umapathy
Arise Awake and Stop NOT till the goal is Reached!
Nicolas Portais
Frequent Advisor

Re: Java: How to run .jar files

Hi,

I'm looking on the download page and and jEdit requires java 1.3 or 1.4.

Try with java 1.3 and the option -jar.

Regards,
Nicolas
Tony Willis_1
Frequent Advisor

Re: Java: How to run .jar files

I am just adding a comment to the jar being like tar command.
jar may not be in your path.
It is not an unix command.
A .jar file that is extracted does not set any file
executable.
This is not a problem with java command executions but,
some vendirs then instruct you to run "setup" or "install" and this will require the
called scripts to require "x" in some cases.
Shell command scripts require this,
Java command jars do not.

Just general information.

Tony
"Not Today,Nice Try, Next Time"