| | |
Version output
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
I've been trying to find a function that returns the version number of the JVM. I found this website that does it, so I know it can be done:
http://www.javatester.org/version.html
Can anyone help me out?
http://www.javatester.org/version.html
Can anyone help me out?
"java -version" from the command line or
From the docs on this system property
System.getProperty("java.specification.version");From the docs on this system property
•
•
•
•
The requirement to identify the Java Runtime is already partially met via the properties specified by the Java Language Specification, §20.18.7 using java.lang.System.getProperties.Currently these identify the implementation of the Java runtime and the core classes that are available. These properties do not identify the Java Language Specification version that this JDK implements.
- java.version i.e. Solaris 1.2
- java.vendor i.e. Sun Microsystems Inc.
Additional properties are needed to identify the version of the Java Runtime Environment specification that this implementation adhere’s to. The properties are:These properties are accessed using the method java.lang.System.getProperty and return their values as strings.
- java.specification.version i.e. 1.1
- java.specification.name i.e. Java™ Language Specification
- java.specification.vendor i.e. Sun Microsystems Inc.
![]() |
Similar Threads
- project plz who can help me (C++)
- how do I play windows games on open suse? (*nix Software)
- help with writing each 100 lines into different files. (C++)
- who can help me in c++ project (C++)
- Finding length (Java)
- look around this problem (C++)
- Creating the piglatin version of a string (Java)
Other Threads in the Java Forum
- Previous Thread: Searching a Text Field in a JList
- Next Thread: Unicode, CSV
Views: 826 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for Java
911 addressbook android api append apple applet application arguments array arrays automation binary bluetooth character chat class classes client code component csv database draw eclipse error event exception file fractal ftp game givemetehcodez graphics gui helpwithhomework html ide image input integer j2me japplet java javaarraylist javaprojects jmf jni jpanel julia linked linux list loop map method methods mobile netbeans newbie number object objects oracle oriented panel print printf problem program programming project projects recursion replaydirector reporting researchinmotion return robot rotatetext scanner score screen se server set size sms socket sort sql stream string swing test threads time tree ubuntu windows






