jar command not being recognized


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers jar command not being recognized
# 1  
Old 05-06-2008
jar command not being recognized

Hi,

I'm trying to extract a war file via the jar command; however, when I issue:

jar -xvf MyWarFile.war

I'm recieving "jar: not found"

I added

/usr/bin to the path ...didn't work

also tried
/usr/bin/jar to the path...still doesn't work

My JAVA_HOME/bin is also in the path.

OS is Sun Solaris.

Can someone tell why jar is not being recognized?

thanks,
# 2  
Old 05-06-2008
I found the problem...
I did a find on "jar" and /usr/bin/jar was the first thing to show up. This was not the correct jar. I found it under JAVA_HOME/bin. The JAVA_HOME variable that I had originally set in my path was incorrect.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX Desktop Questions & Answers

Jar command nor working in centos

Hi All, I have a jar file and I want to extract that jar file. I am using command jar xf Sample_Pack.jar After pressing enter this command returns no error and is not even executed. Pls help (1 Reply)
Discussion started by: Palak Sharma
1 Replies

2. Shell Programming and Scripting

Want to write all the jar name in single with delimiter ":" in beween the jar name

Hi All, I am having 7 jar files in a dir. abc like listed below bash-3.00$ cd abc bash-3.00$ ls 123.jar 23wdawd.jar dfsa23.jar dsa.jar wew234.jar adsd234234.jar dfsda423.jarNow i want to assign all this jar files to a variable in the below format ... (6 Replies)
Discussion started by: natraj005
6 Replies

3. Shell Programming and Scripting

$1 argument not being recognized

I am working on AIX 6.1 issuing #!/bin/sh at the beginning of the script. I don't understand why $1 is not working as expected. I expect it to hold the value for the first argument coming from the command line consistently - and it is not. At the beginning of the script starting I do this:... (4 Replies)
Discussion started by: Feliz
4 Replies

4. Shell Programming and Scripting

Second parameter is not recognized

Hey I have a problem with my script. I writing a script which can depend whether you want to make a file or a directory. I only give the code where you can find the problem. My loop doesn't stop and I don't know why and when i echo my second parameter , he echoes nothing :s Thnx ... (1 Reply)
Discussion started by: Eclecticaa
1 Replies

5. Programming

How do i get Java commands to be recognized in command prompt?

I would like to do some of my Java programming homework at home, and when i type things such as "javac" & "java" it does not recognize it. How do i set it up so it recognizes Java coding? (1 Reply)
Discussion started by: Anna Hussie
1 Replies

6. Programming

How do i get Java commands to be recognized in command prompt?

I would like to do some of my Java programming homework at home, and when i type things such as "javac" & "java" it does not recognize it. How do i set it up so it recognizes Java coding? (1 Reply)
Discussion started by: Anna Hussie
1 Replies

7. Shell Programming and Scripting

Execution problems with the jar -tvf command and "if" logic

Hi, I am reading a directory that has a list of jar files. I am searching these files for specific keywords. What i would like to do is write the address of the jar file to a new file if the search result is returned as false. For example; /home/user/JarDirectory/Examplefile.jar ... (2 Replies)
Discussion started by: crunchie
2 Replies

8. Forum Support Area for Unregistered Users & Account Problems

I am not being recognized

Hi Admin, My user id is "chanakyahere", i forgot my password. When i give my mail id "chanakyahere@gmail.com" it is not being accepting by webmaster. But to the same mail id i got reply to one of my questions. The same mail id i gave while registering in this site. This i can confirm as... (0 Replies)
Discussion started by: Help
0 Replies

9. UNIX for Dummies Questions & Answers

jar command not running in Unix

Hi , I am working in Sun SOlaris 9 and trying to extract a particular jar file in my home. I am giving command "jar xv <filename>" But it just hangs and does nothing ? Any pointers why this is happenning ? or how can I see contents of a jar file? Thanks (2 Replies)
Discussion started by: hkapil
2 Replies
Login or Register to Ask a Question