各位大虾,小弟初学JAVA,遇到点问题,还请各位不吝赐教,在下感激不尽。具体问题如下:"MainApp.java": cannot access com.huawei.eie.mmsapi.MMSendMng,bad class file: D:\MyJob\Item\lib\MMS.jar\com\huawei\eie\mmsapi\MMSendMng.class,class file has wrong version 49.0, should be 48.0,Please remove or make sure it appears in the correct subdirectory of the classpath. at line 9, column 17 MMS.jar是一个实现彩信发送功能包。 使用的开发环境如下:
开发工具:JBuilder X
jdk:1.4.2
开发环境配置:
Tools->configure Libraries->User Home->MMS.jar
Project->Project Properties->Paths
Required Libraries下页加入MMS库
开发工具:JBuilder X
jdk:1.4.2
开发环境配置:
Tools->configure Libraries->User Home->MMS.jar
Project->Project Properties->Paths
Required Libraries下页加入MMS库
使用jdk1.4.2 生成的.class文件 版本是48.0
使用jdk1.5 生成的.class文件 版本是49.0
可以使用jdk1.4.2执行此.class文件就没有问题了
class file has wrong version 49.0, should be 48.0,Please remove or make sure it appears in the correct subdirectory of the classpath
是说编译生的字节码文件的版本有问题,你可能真的要换个先版本的jdk了。现在jdk都升级到1.6几了,换个最新的试试了!
你用的jdk1.4
跑不了