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

后端 未结 23 3487
心在旅途
心在旅途 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:44

    If your package is helloworld you would go to parent dir of your package then run:

    java helloworld.HelloWorld
    

提交回复
热议问题