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

后端 未结 2 1754
半阙折子戏
半阙折子戏 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:16

    goto C:\My Documents\DiTest\ds\

    javac  DiServer.java
    

    goto C:\My Documents\DiTest\

    java ds.DiServer 
    

    Also See

    • packages
    0 讨论(0)
  • 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à.

    0 讨论(0)
提交回复
热议问题