Installed new JRE, but old version is still used

I'm running openSUSE 10.3 on a laptop. I just installed JDK 6u3 and JRE 6u3.
When I compile my programs an run them, it says "unsupported class version number". So I typed in "java -version", and it said "Java Version 1.5.0_12".
How do I make it use JRE 6u3 and not JRE 5?
P.S. I can compile the programs using "javac -version 1.4", and then they'll work.

wpafbuser1 wrote:
Just FYI that was not a very elegant solution. All you had to do was make the new JRE the default by updating some environment variables. You could have found this solution on Google in seconds.
The above will not work at all.
As initially reported there was an unsuccessful upgrade of JDK and JRE due to an unknown problem.
In Linux distributions, links to Java tools resides in the path */usr/bin* and don't need to set any system variable to straight invocate them since this path is included in PATH global system variable.
If thought on the global user variable JAVA_HOME, it is for "applications" and respecting the developer/user knowledge I didn't mention this fact.

Similar Messages

Maybe you are looking for