Eclipse中奇怪的"java.lang.NoClassDefFoundError" [英] Strange “java.lang.NoClassDefFoundError” in Eclipse

查看:51
本文介绍了Eclipse中奇怪的"java.lang.NoClassDefFoundError"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行的J2me项目正在测试java.lang.NoClassDefFoundError: org/cdac/securitycore/storage/StorageBridge.我已经包含了一个包含StorageBridge.class的jar文件,即使我也检查了类路径 我的jar文件在1.5编译时编译 &我的应用程序正在使用1.3编译器进行构建,这就是造成问题的原因

i am testing a J2me project when i run it is giving java.lang.NoClassDefFoundError: org/cdac/securitycore/storage/StorageBridge. I had included a jar file which contains StorageBridge.class even i checked the class path also my jar file compiled at 1.5 compilence & my application is building with 1.3 compilence is this the reason for creating a problem

推荐答案

我曾经遇到过同样的问题.我花了几个小时才弄清楚...

I had the same problem once. It took me hours to figure it out...

据我所记得,Eclipse有点拥有" 2个类路径:一个编译类路径和一个运行时类路径.我不记得要在何处确切访问这两者,但是我很确定它在项目属性中的某个位置.确保您的JAR文件都添加到了这两个文件中.

From what I remember, Eclipse kind of "has" 2 classpaths: a compile classpath and a runtime classpath. I don't remember where exactly to access both, but I'm pretty sure it's somewhere in the project's properties. Make sure that your JAR file is added to both of them.

这篇关于Eclipse中奇怪的"java.lang.NoClassDefFoundError"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆