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:
I've got this placed in my .bashrc file:
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!
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
Code:
JAVA_HOME=/usr/java/latest
export PATH=$JAVA_HOME/bin:$PATH
JRE_HOME=/usr/java/latest
export PATH=$JRE_HOME/bin:$PATH
Thanks a lot!