1833747 Members
2751 Online
110063 Solutions
New Discussion

Re: Java exception

 
SOLVED
Go to solution
Steven Richards
Frequent Advisor

Java exception

Afternoon all,

Just wondering if I could call upon your collective expertise to help with a Java issue. Had a request to install Java 1.4.2.10.07 on HP-UX PA-RISC 11.11 system, it already had 1.4.2.04.00 installed and I installed the new version without uninstalling the old version first.

Now whenever I run java -version I get the following -
/opt/java1.4/bin=> ./java -version
Exception in thread "main" java.lang.UnsatisfiedLinkError: findLoadedClass
at java.lang.ClassLoader.findLoadedClass(Native Method)
at java.lang.ClassLoader.loadClass(ClassLoader.java:278)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)

Any ideas?

I installed patch PHSS_30049 as recommended on another thread, I also have the two patches mentioned in the pre-reqs too. All help much appreciated!

Steve.
A pint of vodka my good woman
1 REPLY 1
Steve Steel
Honored Contributor
Solution

Re: Java exception

Hi

http://www.hp.com/products1/unix/java/faq/index.html#multiple_versions

Q: Can I run multiple versions of Java at the same time?

A: Yes, because each version installs by default into a different directory. Java 1.3 installs in opt/java1.3, Java 1.4 in /opt/java1.4, and Java 5.0 in /opt/java1.5.

However you need to add the correct directory for the version you are using to your PATH variable.

For JNI applications, you also need to define the environment variable SHLIB_PATH to reference the correct directory structure for the Java shared libraries.

Q: I am trying to download the JDK and receive the following


By loading the old on the new I suspect you corrupted something.

Clean install the new in a different directory and try that


Steve Steel

If you want truly to understand something, try to change it. (Kurt Lewin)