如何在终端中编译和运行多包NetBeans项目

时间:2017-11-22 17:06:31

标签: java netbeans terminal

如何编译和运行具有多个包在终端中包含多个类的NetBeans项目?我明白了:

        Error: Could not find or load main class CharacterCreatorapp.class

当我尝试编译包中的一些类时,我得到了:

          $ javac Wizard.java
          Wizard.java:11: error: cannot find symbol
          public class Wizard extends CharacterCreator
                        ^
          symbol: class CharacterCreator
          Wizard.java:31: error: method does not override or implement a
          method from a supertype
          @Override
          ^
          Wizard.java:35: error: cannot find symbol
            + super.toString() 
              ^
          symbol:   variable super
          location: class Wizard
          3 errors

这是在CharacterCreator.java成功编译之后。

0 个答案:

没有答案