user3150201
user3150201

Reputation: 1947

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

Upvotes: 2

Views: 929

Answers (1)

Philipp Gayret
Philipp Gayret

Reputation: 5070

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)

Upvotes: 2

Related Questions