Exception while compiling: wrong version 50.0, should be 49.0

后端 未结 5 703
故里飘歌
故里飘歌 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条回答
  •  隐瞒了意图╮
    2020-12-28 13:20

    It means that, you have compiled that class with Java 6 and trying to execute with Java 5.

    Solution :

    If your using ant, execute below steps on the project root directory

    1. ant clean
    2. ant deploy

    If your using eclipse, just clean the workspace(remove the class files which were compiled with Java6) and build again

提交回复
热议问题