安装路径 F:\Java\jdk
classpath:F:\Java\jdk\lib\tools.jar
Path:F:\Java\jdk\bin
JAVA_HOME:;F:\Java\jdk
问题是能够编译java程序,也能够判断是否出错,但是就是不能运行
运行程序的时候老是显示这个
F:\Java\Java code>java HelloWorld
Exception in thread "main" java.lang.NoClassDefFoundError: Hell
Caused by: java.lang.ClassNotFoundException: HelloWorld
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:248
Could not find the main class: HelloWorld. Program will exit.
------解决方案--------------------
那不是发广告了?
------解决方案--------------------
还是配置的问题吧,你再看看网上相关的java环境的搭建
------解决方案--------------------