Purpose
This page will help you to identify the version of Java used to implement Java application.
Details
Run the following command line
<JAVA INSTALLATION FOLDER>\bin\javap -verbose <YOUR .CLASS file> | findstr "major"
The major version can be found from the result. Refer to the page General_layout - 6 and 7 byte - version of java:
- Java 1.2 uses major version 46
- Java 1.3 uses major version 47
- Java 1.4 uses major version 48
- Java 5 uses major version 49
- Java 6 uses major version 50
- Java 7 uses major version 51
- Java 8 uses major version 52
- Java 9 uses major version 53
Example
In the above example, the major version is 50, then, the Java version used to implement the application is Java 6.
Notes/comments
Related Pages