Search code examples
javaversionlaunch4j

How do I get the full-format name of a Java version?


I created a Java application. I'm trying to use Launch4j to wrap the JAR file in a EXE file.

But Launch4j won't make the EXE unless I tell it the minimum JRE version required, in this exact format: x.x.x[_xx].

How can I get this full-format name of a version of Java? Thanks


Solution

  • Run java with the -version parameter;

    > java -version
    java version "1.7.0_25"
    Java(TM) SE Runtime Environment (build 1.7.0_25-b17)
    Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)