Is it possible somehow to get java version that was used to build class? Is there are any information compiled into class file? Possible there is some specific headers/footers or something like that.
Asked
Active
Viewed 2,446 times
-1
-
2The class files have a version number written in them. – Andrew Thompson May 02 '13 at 14:37
-
1@jarnbjo What makes you think that's the real question? Knowing the actual compiler version seems of dubious use. Knowing the JRE targeted by the code is obviously useful. – Nathaniel Waisbrot May 02 '13 at 15:20
-
@Nathaniel: That's what user1501700 is asking for. If he means something else, he had lots of time to edit his question and I don't find the question particularly strange. – jarnbjo May 03 '13 at 00:11
1 Answers
0
Yes. You can find the version of JDK on which the class was compiled. Refer here.

Community
- 1
- 1

Rahul Bobhate
- 4,892
- 3
- 25
- 48