This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "problem with java -version" Watch "problem with java -version" New topic

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

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

I agree. Here's the link:
subject: problem with java -version
It's not a secret anymore!