package com.ai.tsp.server;import com.ai.tsp.server.util.SpringContextUtil;public class Main { public static void main(String[] args) {
// 启动系统
Server server = (Server)SpringContextUtil.getBean(Server.class);
server.start();
}
}
java.lang.NoClassDefFoundError: com/ai/tsp/server/Main
Caused by: java.lang.ClassNotFoundException: com.ai.tsp.server.Main
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Exception in thread "main" EclipseJava类
解决方案 »
- 请问一道java基础题,请大侠帮忙,谢谢
- 我用父类声明,用子类new,编译不通过
- java 打字测试
- 晕……这个问题怎么解决……
- ?显示错误需要类“ConsoleApplication1.Program”的显式封闭实例来实例化内部类
- 有关JAVA 的
- 请看这样的构造函数能不能行得通,若能,这个叫什么模式?
- 大家快来抢分啊:怎样从URI标识的资源中读数据:
- 请在http://expert.csdn.net/Expert/topic/1266/1266042.xml?temp=.5106623上有帮助的近来领分!记住,有没有长点的原代码?
- 谁能给我介绍一下ResourceBundle这个类是做什么用的?
- 程序输出结果不对啊
- 一个“提前运行”奇怪现象
把properties属性里的java compiler-->building-->abort build when build path errors occur 前的勾去掉了
这样就ok 了方法引用地址:http://cancait.blog.163.com/blog/static/2133574420081023032064
试过了,不行 是在运行的时候 RunConfigurations->Classpath 中包不对,