2009年6月18日 星期四

bad class file. class file has wrong version 50.0, should be 4x.0.

When compiling your code using the JAR files, you may receive an error similar to the one below:
packages/apps/DMClient/src/com/asus/dm/DMMMIFactory.java:3: cannot access com.redbend.vdm.MmiChoiceList

bad class file: out/target/common/obj/JAVA_LIBRARIES/XXXX_intermediates/javalib.jar(com/XXXX/vdm/MmiChoiceList.class)

class file has wrong version 50.0, should be 49.0

Please remove or make sure it appears in the correct subdirectory of the classpath.

import com.XXXX.vdm.MmiChoiceList;
^

1 error

These types of errors are caused by a Java version mismatch between the compiled proxies and your runtime.

Below are a list of some of the version numbers and their corresponding Java runtimes:


Version 50.0 = Java 1.6.x
Version 49.0 = Java 1.5.x
Version 48.0 = Java 1.4.x


To resolve this issue, compile them with the right version of Java SDK

沒有留言:

張貼留言