Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

finding java compiler version of a war file

 
neha achrikar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to find the java compiler version whether java 5 or jave 6 of a war file that i have.
please help
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15642
47
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch!

I don't think there is an easy way to find that out directly from a war file. However, you could look inside the war file for *.class files (in the WEB-INF/classes directory). This blog post explains how you can get the version number of a class file using javap (a tool that is included with the JDK). The version number tells you for which Java version the class file is compiled; for example 50 is Java 6, 49 is Java 5.
 
neha achrikar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks a lot.....
got it
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic