紧急求救:程序没有错误,但是在NetBeans中运行一直出现下面的错误 10
java.lang.NoClassDefFoundError:pb/MainCausedby:java.lang.ClassNotFoundException:pb.Ma...
java.lang.NoClassDefFoundError: pb/Main
Caused by: java.lang.ClassNotFoundException: pb.Main
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: pb.Main. Program will exit.
Exception in thread "main" Java Result: 1 展开
Caused by: java.lang.ClassNotFoundException: pb.Main
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: pb.Main. Program will exit.
Exception in thread "main" Java Result: 1 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询