wood burning stoves 2.0*
The moose likes Java in General and the fly likes java compiler version Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "java compiler version" Watch "java compiler version" New topic
Author

java compiler version

Karthik Krishnamurthy
Ranch Hand

Joined: Feb 04, 2005
Posts: 118
Hi,
I need to figure out what version of jdk was used to compile a whole bunch of files. Is there any way to do this?

Thank You
Karthik
Siva Masilamani
Ranch Hand

Joined: Sep 19, 2008
Posts: 385
check this

here


SCJP 6,SCWCD 5,SCBCD 5

Failure is not an option.
Karthik Krishnamurthy
Ranch Hand

Joined: Feb 04, 2005
Posts: 118
Thanks Siva. Works like a charm

Karthik
Samuel Behrman
Ranch Hand

Joined: Oct 02, 2009
Posts: 49
I think it is jdk6.


RAQ Report: Web-based Excel-like Java reporting tool.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19674
    
  18

How can you tell without even having the class files?


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41591
    
  55
I don't think it is possible to find out which JDK was used for compiling. What *is* possible (and what that linked page shows) is which JRE the class was compiled *for* (which is, of course, the more useful thing to know).


Ping & DNS - my free Android networking tools app
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: java compiler version