A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Java
»
Beginning Java
Author
Java version
Barry Brashear
Ranch Hand
Joined: Jun 05, 2001
Posts: 303
posted
May 20, 2003 06:26:00
0
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
posted
May 20, 2003 06:51:00
0
check the value of JAVA_HOME. Also, at the command line enter:
java -version
Rom Chatterjee<BR>Sun Certified Java Programmer
Orin Malcolm
Greenhorn
Joined: May 20, 2003
Posts: 5
posted
May 20, 2003 11:39:00
0
If you are writing code you can use:
System.getProperty("java.version");
Knowledge is a disease..<br />Be sure to get infected.<p>Soon to be SCJP
Chen Huaping
Greenhorn
Joined: May 28, 2003
Posts: 1
posted
May 28, 2003 20:39:00
0
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:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: Java version
Similar Threads
Unable to run web application when moved from Tomcat to Jboss
Problems with SSL-Connection, CipherSuite wrong?
Getting HTTP Status - 500
Null Global JNDI Error
jdk version
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter