郁闷啊,,一个类在eclipse编译可以通过,放在Jbuider就不行,请教高手:提示:
import com.diagcn.smslib.SZHTOCService;//引入的这个类报错
SampleClass.java": cannot access com.diagcn.smslib.SZHTOCService,bad class file: E:\公司文档及相关软件\短信猫二次开发\惠通\new惠通java开发包_0613\惠通java开发包_加密狗版\SZHTOGsm.jar\com\diagcn\smslib\SZHTOCService.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 8, column 26jbuider单独编译类文件怎么跟tomcat扯上关系了?
import com.diagcn.smslib.SZHTOCService;//引入的这个类报错
SampleClass.java": cannot access com.diagcn.smslib.SZHTOCService,bad class file: E:\公司文档及相关软件\短信猫二次开发\惠通\new惠通java开发包_0613\惠通java开发包_加密狗版\SZHTOGsm.jar\com\diagcn\smslib\SZHTOCService.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 8, column 26jbuider单独编译类文件怎么跟tomcat扯上关系了?
-----------------------------------
有些时间,我们会遇到版本不匹配的问题。如:bad class file: /usr/java/jdk1.5.0_06/jre/lib/rt.jar(java/lang/Object.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.这是因为编译环境和运行环境的不一致造成的,比如tomcat5.5和jdk1.5配合的时候,可能就会出现。解决这个问题的方法:copy jdk1.5的lib/tools.jar到tomcat5.5的common/lib/tools.jar,覆盖掉原有文件就可以了。
--------------------------------------------------------------------------
我就搞不懂Jbuider的jdk怎么依赖性这么高啊,,
高手还能想到其他的问题吗