Meaningless Drivel is fun!*
The moose likes Beginning Java and the fly likes problem with java -version Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "problem with java -version" Watch "problem with java -version" New topic
Author

problem with java -version

Joel Karimpil
Ranch Hand

Joined: Oct 04, 2004
Posts: 53
i have installed jdk1.4.2_06,
and set my JAVA_HOME variable to c:j2sdk1.4.2_06,
but still, when i run the command 'java -version' in the command prompt, it returns j2sdk1.3.1_02.
why is this?


Yours Truly,
Joel Karimpil
Stefan Krompass
Ranch Hand

Joined: Apr 29, 2004
Posts: 75
Hi,

remove c:\j2sdk1.3.1_02\bin from your PATH and add c:\j2sdk1.4.2_06\bin instead.

Stefan
 
Don't get me started about those stupid light bulbs.
 
subject: problem with java -version
 
Similar Threads
Error: package xxxx does not exist
Error when starting Weblogic in Debug Mode
how can i know the verison of my java
Trouble using the jar command
Why rmic does not compile the remote interface implementing?