Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to know which JDK was used to compile a class?

 
Nurat Lamos
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am in a situation where I need to know what JDK was used to compile a java source.
Is there a way we can do this?
Thanks,
Tarun
 
Michael Morris
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a class I threw together a while back. It just dumps the class file header (first 8 bytes of the file). I'm not sure what the previous version codes are, but 1.3 is 46.0 and 1.4 is 48.0.

[ June 23, 2003: Message edited by: Michael Morris ]
 
Nurat Lamos
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot Michael..!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic