Exception in thread “main” java.lang.NoClassDefFoundError: DiServer

后端 未结 2 1766
半阙折子戏
半阙折子戏 2020-12-16 00:32

This is one of those terribly embarrassing questions I\'m afraid.

I have a program in Eclipse:

    package ds;
    public class DiServer {
 public st         


        
2条回答
  •  攒了一身酷
    2020-12-16 01:31

    You class full name is ds.DiServer, not DiServer. From C:\My Documents\DiTest:

    java -cp . ds.DiServer
    

    And voilà.

提交回复
热议问题