LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   jar file installation (https://www.linuxquestions.org/questions/linux-newbie-8/jar-file-installation-344491/)

zakidad 07-18-2005 10:03 PM

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.
Bye

crabboy 07-18-2005 11:48 PM

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:
Code:

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.

Code:

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


All times are GMT -5. The time now is 12:57 PM.