File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes 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 "Java version" Watch "Java version" New topic

Java version

Barry Brashear
Ranch Hand

Joined: Jun 05, 2001
Posts: 303
Is there a way to check the version of java that is installed? One machine here has two versions and I don't know which is which?
rom chatterjee
Ranch Hand

Joined: Dec 11, 2001
Posts: 46
check the value of JAVA_HOME. Also, at the command line enter:
java -version

Rom Chatterjee<BR>Sun Certified Java Programmer
Orin Malcolm

Joined: May 20, 2003
Posts: 5
If you are writing code you can use:

Knowledge is a disease..<br />Be sure to get infected.<p>Soon to be SCJP
Chen Huaping

Joined: May 28, 2003
Posts: 1
Yeah,the easy way is press the command:
java -version
at any directory for the DOS mode window!

I'm a J2ME/C/C++/ASM fan!
I agree. Here's the link:
subject: Java version
It's not a secret anymore!