System.getProperty("java.version")
returns what you need.
You can also use JMX if you want:
ManagementFactory.getRuntimeMXBean().getVmVersion()
More Related Contents:
- How to see JIT-compiled code in JVM?
- Running jmap getting Unable to open socket file
- How to fix java.lang.UnsupportedClassVersionError: Unsupported major.minor version
- Jvm takes a long time to resolve ip-address for localhost
- What is in Java object header?
- Is there a way to get a reference address? [duplicate]
- How to tune Tomcat 5.5 JVM Memory settings without using the configuration program
- How do I find out what keystore my JVM is using?
- Error launching Android Studio: Failed to create JVM: error code-6
- JVM option -Xss – What does it do exactly?
- When does the main thread stop in Java?
- JFrame.dispose() vs System.exit()
- What is the JVM thread scheduling algorithm?
- try with resources introduce unreachable bytecode
- When will JVM use intrinsics
- Setting JVM/JRE to use Windows Proxy Automatically
- Would Java inline method(s) during optimization?
- Java VM: reproducible SIGSEGV on both 1.6.0_17 and 1.6.0_18, how to report?
- How to set timezone to UTC in Apache Spark?
- Why defining class as final improves JVM performance?
- What is the default maximum heap size for Sun’s JVM from Java SE 6?
- Correct way to check Java version from BASH script
- Java’s “os.name” for Windows 10?
- How does the JVM terminate daemon threads? or How to write daemon threads that terminate gracefully
- Is it possible to use sun.misc.Unsafe to call C functions without JNI?
- JVM_FindSignal function continuously allocates native memory
- Is it good to set the max and min JVM heap size the same?
- Which real-time (RTSJ) JVM is most preferred? [closed]
- Measuring time spent on GC
- Release java memory for OS at runtime