Exception while compiling: wrong version 50.0, should be 49.0

后端 未结 5 731
故里飘歌
故里飘歌 2020-12-28 12:31

I am working an application with JXL API and when i tried compiling using eclipse IDE, it\'s working fine and the same is not compiling when i am trying to compile in Comman

5条回答
  •  旧时难觅i
    2020-12-28 13:05

    Per http://www.jnode.org/node/2140...

    Submitted by Stephen Crawley on Fri, 11/30/2007 - 07:15.

    I suspect that you are mixing code compiled with different versions of Java. Class file version 50.0 is used by Java 6.0, and 49.0 is used by Java 5.0.

    Try doing a "build clean" to get rid of all existing class files, followed by a regular build.

    JNode is being developed using Java 6.0 only. Last time I tried, it didn't build using Java 5.0 (aka 1.5). (It is a problem with the program that builds the JNode boot image.)

    Try changing the builder in Eclipse. If you're using 3.4, it's Project - Properties - Java Compiler - Enable Project Specific Settings - Compiler Compliance Level = 1.6. You'll prolly also need to have JRE 1.6 installed, as well.

提交回复
热议问题