I'm trying to determine inside an application what is the Java version used to call a JAR.
I saw some solutions talking about System.getProperty(java.version)
, but what if the user have different versions of Java, and the command is like this:
C:\Absolute\Path\To\Java\1.5\java -jar something.jar
Is there any way to know the real Java version?