主题:虚心求教——编译没问题,运行报错如贴,这是怎么了
Java编译时没问题,可运行就报错
Exception in thread "main" java.lang.NoClassDefFoundError: Welcome
Caused by: java.lang.ClassNotFoundException: Welcome
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)
Could not find the main class: Welcome. Program will exit.
前几天还可以运行的,不知道现在是怎么了,头大了,各位高手帮忙看看问题出哪里了
Exception in thread "main" java.lang.NoClassDefFoundError: Welcome
Caused by: java.lang.ClassNotFoundException: Welcome
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)
Could not find the main class: Welcome. Program will exit.
前几天还可以运行的,不知道现在是怎么了,头大了,各位高手帮忙看看问题出哪里了