This content has been marked as final. Show 4 replies
From what I understand, the problem is that your classes are compiled for a later version of Java. I'm not sure at this point that uninstalling Java 1.4 is the right solution - it may break important system functions.
I would rather try another approach first:
If you want to install java 1.6 you can try the following:
# alternatives --config java -> select the java version you want as default.
# yum install java-1.6* or just the runtime package # yum install java-1.6.0-openjdk For example: # java -version java version "1.4.2" # yum install java-1.6.0-openjdk # alternatives --config java There are 2 programs which provide 'java'. Selection Command ----------------------------------------------- + 1 /usr/lib/jvm/jre-1.4.2-gcj/bin/java * 2 /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java Enter to keep the current selection[+], or type selection number: 2 # java -version java version "1.6.0"
What I was wondering about: You compiled with java 1.6, but java -version still reports 1.4. I think your problem is that you will also need to use java 1.6. From what I understand, uninstalling java 1.4 does not mean it will automatically switch to 1.6. But you could try to choose and change your default java to be 1.6 as I outlined above.
To uninstall 1.4 I suppose you could try sudo yum remove java-1.4*, but I would rather try to simply switch the default java first.
Edited by: Dude on Apr 15, 2011 1:09 AM