当前位置: 技术问答>java相关
我的程序编译没有出错,但运行是出现如下错误,为什么?
来源: 互联网 发布时间:2015-03-12
本文导语: Exception in thread "main" java.lang.NoClassDefFoundError: Instrument/InstrumentSelectionFrame$GraphicsPanel at JustApps. (JustApps.java:129) at JustApps.main(JustApps.java:182) | class找不到,目录关系不对 ...
Exception in thread "main" java.lang.NoClassDefFoundError: Instrument/InstrumentSelectionFrame$GraphicsPanel at JustApps. (JustApps.java:129)
at JustApps.main(JustApps.java:182)
at JustApps.main(JustApps.java:182)
|
class找不到,目录关系不对
|
java -cp . JustApps
|
main前面少了static关键字
|
检查PATH CLASSPATH