编译通过,运行时出现这样的问题。怎么办?
Exception in thread "main"
java.lang.NoClassDefFoundError: Thre
Caused by:
java.lang.ClassNotFoundException: ThreadDemo
at java.net.URLClassLoader$1.run(URLClassLoader.java:20
at java.security.AccessController.doPrivileged(Native M
at java.net.URLClassLoader.findClass(URLClassLoader.jav
at java.lang.ClassLoader.loadClass(ClassLoader.java:307
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.
at java.lang.ClassLoader.loadClass(ClassLoader.java:252
at java.lang.ClassLoader.loadClassInternal(ClassLoader.
Could not find the main class: ThreadDemo. Program will exit.
------解决方案--------------------classpath 设置了什么内容?