Operating System - HP-UX
1832961 Members
3477 Online
110048 Solutions
New Discussion

Re: problem with symbolic link to java

 
yuanml
New Member

problem with symbolic link to java

created a symbolic link to java (JDK/bin/java or JDK/jre/bin/PA_RISC2.0/native_threads/java).

When I invoke the symbolic link, got the coredump error. But if I call the java directly, it succeeded. See the example below.
Anybody has the same problem before? Please advise.

$ls -l mjava
lrwxr-xr-x 1 clarify dba 54 Mar 1 12:57 mjava -> /opt/bea/jdk131/jre/bin/PA_RISC2.0/native_threads/java
<>
$mjava
Memory fault(coredump)
<>
$/opt/bea/jdk131/jre/bin/PA_RISC2.0/native_threads/java -version
java version "1.3.1.01-release"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1.01-release-010816-12:37)
Java HotSpot(TM) Server VM (build 1.3.1 1.3.1.01-release-010816-13:34-PA_RISC2.0 PA2.0, mixed mode)
6 REPLIES 6
RAC_1
Honored Contributor

Re: problem with symbolic link to java

file core

Anil
There is no substitute to HARDWORK
Steven E. Protter
Exalted Contributor

Re: problem with symbolic link to java

I would recommend installing patches and the latest java 1.3.x patches from http://www.hp.com/go/java

Also, why are you using a symbollic link? You can set an environment variable to point various scripts and applications to the right version of JAVA.

JAVA_BIN=/opt/java

That kind of thing.

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
yuanml
New Member

Re: problem with symbolic link to java

>> file corrupt
if file corrupt, why the java itself works?

>>Why do I use symbolic link?
To find and kill the Java process easily.
We have a few java process running at the same time. When you use ps to list process, all java process are named "/opt/..../jre/bin/PA_RISC2.0/native_threads/java -classpath...", you don't know which process is which. Symbolic Link is a good solution to this problem
RAC_1
Honored Contributor

Re: problem with symbolic link to java

file core will tell you what signal/program caused the core file.

Anil
There is no substitute to HARDWORK
yuanml
New Member

Re: problem with symbolic link to java

thanks, Anil . Problem solved!
RAC_1
Honored Contributor

Re: problem with symbolic link to java

How??
There is no substitute to HARDWORK