File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 Soft Skills this week in the Jobs Discussion 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: 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
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: 40052
    
  28
Oracle is notorious for doing that.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java Version Mismatch