| | |
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
| Thread Tools | Search this Thread |
Tag cloud for Java
affinetransform android api apple applet application arc arguments array arrays automation binary bluetooth businessintelligence chat class classes client code component database desktop draw ebook eclipse encode equation error event exception file fractal game givemetehcodez graphics gui helpwithhomework html ide image input integer intersect j2me java javaexcel javaprojects jmf jni jpanel julia linked linux list loop mac main map method methods mobile netbeans newbie number online open-source oracle parameter print problem program programming project properties recursion reference replaysolutions rotatetext scanner score screen scrollbar server set size sms socket sort sql string superclass swing template test threads time tree windows working xstream






