Targeting Specific Java Versions (and using javap)

I recently worked on a project where it became necessary to determine the version of the compiler that individual class files were compiled with. More specifically, I needed to determine the target version of Java the code was compiled to run on. You need to be specific about that since even the Java SE 6 compiler can be made to compile classes specifically for other versions of Java.

 



June 25, 2008
URL:http://www.drdobbs.com/jvm/targeting-specific-java-versions-and-usi/228700656

Terms of Service | Privacy Statement | Copyright © 2024 UBM Tech, All rights reserved.