Quantcast
Channel: openSUSE Forums
Viewing all articles
Browse latest Browse all 40713

Using multiple Java Versions

$
0
0
Hello all,

I'm wondering if someone could tell me how to go about setting up OpenSuSE to use multiple versions of Java? I'd like to use these multiple versions in Eclipse, and right now I can only get it to work with Java 1.8, which is my default. Attempting to run with Java 1.6 selected gives me the following error:

Code:

Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object

I've got this placed in my .bashrc file:

Code:

JAVA_HOME=/usr/java/latest
export PATH=$JAVA_HOME/bin:$PATH

JRE_HOME=/usr/java/latest
export PATH=$JRE_HOME/bin:$PATH

How do I also add a path like /usr/java/jdk1.6.0_45, but still also keep /usr/java/latest available?

Thanks a lot!

Viewing all articles
Browse latest Browse all 40713

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>