Hi
i tried
System.out.println(System.getProperty(("java.version") );
but it gives out null.
I am using window xp and jdk 1.6. follow steps to get version no :
1) in command prompt go to jdk 1.6 installation directory : example
c:\program files\java\jdk1.6.0_03>
2) type javac -version
c:\program files\java\jdk1.6.0_03>javac -version
it outputs : javac 1.6.0_03
3) or type java -version
c:\program files\java\jdk1.6.0_03>java -version
it outputs : java version "1.6.0_03"
java(TM) SE Runtime environment (build 1.6.0_03-b05)
java hotspot (tm) client VM (build 1.6.0_03-b05,mixed mode,sharing)