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 The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Java Version Mismatch" Watch "Java Version Mismatch" New topic

Java Version Mismatch

Siva Arun

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: 413

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
Siva Arun

Joined: Feb 23, 2010
Posts: 28
It works! Thanks. Actually, Oracle installation put the jre1.4 entry in the 'Path' variable.
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 41640
Oracle is notorious for doing that.
Have you tried LearnNowOnline?
subject: Java Version Mismatch