| Author |
Java Version Mismatch
|
Siva Arun
Greenhorn
Joined: Feb 23, 2010
Posts: 28
|
|
I have installed JDK6 and still it shows 1.4 as the version.
I have set the following environment variables.
JAVA_HOME = "C:\Program Files\Java\jdk1.6.0_05"
JRE_HOME = "C:\Program Files\Java\jdk1.6.0_02\jre"
Could you please help?
|
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan.
|
 |
pawan chopra
Ranch Hand
Joined: Jan 23, 2008
Posts: 362
|
|
|
There is an environment variable called "Path". You need to put path JRE path there. If you want to use java 6 then pur JRE for java 6 before java 1.4's JRE.
|
Pawan Chopra
SCJP - DuMmIeS mInD
|
 |
Siva Arun
Greenhorn
Joined: Feb 23, 2010
Posts: 28
|
|
|
It works! Thanks. Actually, Oracle installation put the jre1.4 entry in the 'Path' variable.
|
 |
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32708
|
|
|
Oracle is notorious for doing that.
|
 |
 |
|
|
subject: Java Version Mismatch
|
|
|