Java: find version

How do u get the version for the java JDk at runtime ?
jamesb111Asked:
Who is Participating?
 
nil_dibConnect With a Mentor Commented:
check out java.lang.System.getProperties and java.lang.System.getProperty


System.out.println (  System.getProperty("java.version") );
System.out.println (  System.getProperty("java.vendor") );
System.out.println (  System.getProperty("java.home") );
System.out.println (  System.getProperty("os.name") );
// etc.


nil_dib
0
All Courses

From novice to tech pro — start learning today.