Javac “cannot find symbol”

前端 未结 5 591
眼角桃花
眼角桃花 2020-11-30 10:57

I\'ve the root directory like this :

├── classes
└── src
    └── vehicles
        ├── Bicycle.java
        └── BicycleMain.java

Bicycle.jav

5条回答
  •  日久生厌
    2020-11-30 11:40

    Just remove the package line from beginning and it'll work 100%.

    Go to the folder in which files are stored via terminal and type javac *.java

    There will be no need to import classes too.

提交回复
热议问题