Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-18-2005, 11:03 PM   #1
LQ Newbie
Registered: Aug 2004
Location: Serdang
Distribution: none
Posts: 26

Rep: Reputation: 15
jar file installation

Hi all...
From the manual page, there's a command that showing:

#jar i file.jar

is to generates index information for the specified jar file and its dependent jar files
Does this mean installing the jar file is by using this command?
When I tried to use the command on my jar file, there are error message occur, for example:

#jar i mysql-connector-java-3.1.8-bin.jar
/usr/bin/fastjar: invalid option -- i

Since the instruction is to install the jar file in the certain directory, should I used this command or is there any other command for installing the jar file?
Thanks in advanced for anyone who might help.
Old 07-19-2005, 12:48 AM   #2
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,823

Rep: Reputation: 120Reputation: 120
I've never heard of a -i flag for jar.

For the most jar is just like tar, if you've used that before. As for extracting the files from the jar file use:
jar -xvf filename.jar
I usually always list the files in the archive prior to extracting, just to make sure it's creating directories for me.

jar -tvf filename.jar
Jar options: -x (extract) -v (verbose) -f (file) -t (table of contents )


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
I must install a .jar file and I don't know how to do it :| zovres Linux - Newbie 6 10-28-2008 06:46 AM
how to edit a *.jar file? ploosh Linux - Newbie 4 02-28-2005 03:58 PM
Fedora Core 1 Associating .jar files with java -jar command pymehta Fedora 0 01-13-2005 06:26 AM
How to make executetable jar file? antony_csf Programming 2 06-28-2004 08:54 PM
Help installing a (.jar) file. troycus Linux - Newbie 6 10-08-2003 08:23 PM

All times are GMT -5. The time now is 09:40 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration