Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Finding out what version of java a class was compiled with

843810Aug 1 2005 — edited Aug 1 2005
Hi, I have a question that might be answered rather quickly. Is there anyway when given a java class file to find out what version of java was used to compile the original source code? I have an abundance of java class files and I do not want to have to recompile all of the code associated with them so that it matches the version of java that I am currently using. The code was either compiled in Java 1.4 or Java 5.0. I know that if the version of java I am using does not match with the java class files that I will have an "Unsupported Class Version Error". Thank you for taking the time to read my inquiry.

-MJ
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 29 2005
Added on Aug 1 2005
1 comment
272 views