How to find which version of java was used to compile particular java class.
Joined: Nov 07, 2005
Hi, I have a compiled java class file say a.java, which i have taken from somewhere else. Now I would like to know with which java (JDK) version that class file was compiled.
Is there any way to find out above thing (JDK version used for compiling)?
Thanks in advance. --Pras
********Deserve Before You Desire********
Joined: Sep 06, 2007
Not sure is this will help you. Every class file has a format. the first 4 bytes have the magic number and the next 4 represent the version. Please search for class file format for more details. Don't know of any utility that gives this info straightaway.