1820202 Members
3784 Online
109620 Solutions
New Discussion юеВ

sh: jar: not found.

 
SOLVED
Go to solution
Ahmed M. AlShafiy
Regular Advisor

sh: jar: not found.

i try to run an oracle script and i get this message:

sh: jar: not found.

14 REPLIES 14
Robert-Jan Goossens_1
Honored Contributor

Re: sh: jar: not found.

Hi Ahmed,

add the Java bin directory to the envirenmont (PATH) of the oracle user.

in my case java1.4
/opt/java1.4/bin

Regards,
Robert-Jan
Steven E. Protter
Exalted Contributor

Re: sh: jar: not found.

Shalom Ahmed,

Check the JAVA_PATH envirnoment variable.

Check the oracle start scripts.

swlist -l product | grep -i java

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Peter Nikitka
Honored Contributor

Re: sh: jar: not found.

Hi,

Oracle install uses the java distribution brought in with the CD/DVD.
I think your Oracle CD is not not mounted with the correct RR-option so the filename cannot be found.
Try
cd
find . -type f -name 'JAR*' -print

If the find gives you results:
There are many many threads in the forum concerning CD + Rockridge - search!

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Ahmed M. AlShafiy
Regular Advisor

Re: sh: jar: not found.

i have under opt java1.2 and java1.3 and java1.4 and even if i type jar under anyone it will give me the same:

sh: jar: not found.
Antonio Cardoso_1
Trusted Contributor

Re: sh: jar: not found.

jar tool is part of java SDK (not present in JRE).
=> usually in /opt/java1.*/bin/jar

Antonio Cardoso_1
Trusted Contributor

Re: sh: jar: not found.

jar tool is part of java SDK (not present in JRE).
=> usually in /opt/java1.*/bin/jar

# /usr/sbin/swlist | grep -i -E "java.*sdk"
B9788AA 1.3.1.13.01 Java2 1.3 SDK for HP-UX
T1456AA 1.4.2.04.00 Java2 1.4 SDK for HP-UX
c
Ahmed M. AlShafiy
Regular Advisor

Re: sh: jar: not found.

it was working befor how can i reinstall it or fix it please help me
Robert-Jan Goossens_1
Honored Contributor

Re: sh: jar: not found.

# su - oracle
xxx[]/home/oracle> jar
ksh: jar: not found
xxx[]/home/oracle> export PATH=$PATH:/opt/java1.4/bin
xxx[]/home/oracle> jar
Usage: jar {ctxu}[vfm0Mi] [jar-file] [manifest-file] [-C dir] files ...
Ahmed M. AlShafiy
Regular Advisor

Re: sh: jar: not found.

even i try to run it with root user under /opt/java1.4/bin and i get the same:

sh: jar: not found
Robert-Jan Goossens_1
Honored Contributor

Re: sh: jar: not found.

and if you run ?

# /opt/java1.4/bin/jar

Check the jar file

# file /opt/java1.4/bin/jar
jar: PA-RISC1.1 shared executable dynamically linked -not stripped

Robert-Jan
Antonio Cardoso_1
Trusted Contributor
Solution

Re: sh: jar: not found.

what is the result of
ls -l /opt/java1.4/bin/jar
echo $PATH

is it better after you run
export PATH=/opt/java1.4/bin:$PATH
Ahmed M. AlShafiy
Regular Advisor

Re: sh: jar: not found.

i do the following under the root user:

#file /opt/java1.4/bin/jar
/opt/java1.4/bin/jar: PA-RISC1.1 shared executable dynamically linked -not stripped
#jar
sh: jar: not found.
Robert-Jan Goossens_1
Honored Contributor

Re: sh: jar: not found.

as root!

# export PATH=$PATH:/opt/java1.4/bin
# jar

Ahmed M. AlShafiy
Regular Advisor

Re: sh: jar: not found.

thanks all of you freinds