jar file installation

Discussion of programming on Linux, including shell scripting, perl, python, c/c++, mono, java. Whatever tickles your fancy.
ishtiaq ahmed
Posts: 50
Joined: Thu Dec 23, 2004 8:15 pm
Location: lahore

jar file installation

Postby ishtiaq ahmed » Sat Feb 26, 2005 10:25 pm

aslamu alaikum brothers

how can i install jar files. plzz it would be betterif u tell in steps.( mean to say with commands )

Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore

Re: jar file installation

Postby lambda » Sat Feb 26, 2005 10:46 pm

you "install" jar files by placing them in your CLASSPATH environment variable.

Posts: 94
Joined: Thu Jun 10, 2004 7:42 pm
Location: London, UK

Postby wacky » Mon Feb 28, 2005 1:48 am

The answer above is correct but jar is also used for compressing and archiving files & dirs just like tar. If this is the case here then to extract all files and dirs from a jar archive, you can use the command:

jar xf jarfile.jar


Lance Naik
Posts: 44
Joined: Tue Feb 22, 2005 11:54 am
Location: swat

if you r saying java jar files then

Postby swatiantigers » Mon Feb 28, 2005 7:10 pm

on windows:

C:/jdk1.4/bin/java -jar jar_filename.jar
jar_filename is the name of the jar which u wants to run or install

on linux:

/opt/jdk1.5.0_01/bin/java -jar jar_filename.jar
ur_javapath/bin/java -jar jar_filename.jar
ur_javapath is the path of ur java

if the file contains a gui then it will display gui else it will show nothing.....

Return to “Programming”

Who is online

Users browsing this forum: No registered users and 1 guest