0

I'm using Netbeans 7.1.1 with JDK 1.7.03 to develop a Web application.

Then i execute the Build command, to get a .war file. Next i decompress this war file using Winrar.

Finally i execute javap -verbose on any class that i wrote.

The thing is, im getting Major Version: 50, when i should have Major Version: 51

At least according to this Question.

What am I missing?

Community
  • 1
  • 1
Anibaru
  • 193
  • 1
  • 2
  • 12
  • 1
    Check your project settings; maybe it has a 1.6 compile target setting? – fge Mar 19 '14 at 21:24
  • Maybe on your pc you have more than one jdk or jre, and the server runs with another java version. Also check the JAVA_HOME env variable. – landal79 Mar 20 '14 at 15:54
  • I checked my JAVA_HOME (in Windows), and it points to JDK 1.7.03, i checked then mi compile target and it's using java 1.7 besides i'm using java.nio.file package which is only available since Java 1.7. – Anibaru Mar 21 '14 at 17:52

0 Answers0