aspose file tools*
The moose likes Beginning Java and the fly likes Java Version Mismatch Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Java Version Mismatch" Watch "Java Version Mismatch" New topic
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: 411

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: 39436
    
  28
Oracle is notorious for doing that.
 
jQuery in Action, 2nd edition
 
subject: Java Version Mismatch