Cannot find symbol in same package and directory

后端 未结 3 1069
遥遥无期
遥遥无期 2021-01-05 02:15

I have two classes, Offering and Course. They are both in the same package and the same directory.

Offering.java:

package assignment02;

public class         


        
3条回答
  •  旧巷少年郎
    2021-01-05 02:58

    You can also compile using the "-classpath" argument, with its value set to the parent directory, like this:

    javac -classpath .. Offering.java
    

提交回复
热议问题