exception in thread 'main' java.lang.NoClassDefFoundError:

后端 未结 23 3527
心在旅途
心在旅途 2020-11-28 06:27

The following program is throwing error:

public class HelloWorld {
    public static void main(String args[]) {
        System.out.println(\"Hello World!\");         


        
23条回答
  •  爱一瞬间的悲伤
    2020-11-28 06:43

    The CLASSPATH variable needs to include the directory where your Java programs .class file is. You can include '.' in CLASSPATH to indicate that the current directory should be included.

    set CLASSPATH=%CLASSPATH%;.
    

提交回复
热议问题