It's not a secret anymore!
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

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.

Have you checked out Aspose?
subject: problem with java -version
It's not a secret anymore!