简体   繁体   中英

".java is not on the classpath of project, it will not be compiled to a .class file" error

I made 3 Java files and uploaded them to a git repository. I then cloned that repository onto VS Code and it linked up perfectly.

After committing and pushing my first version, it came up with the error mentioned in the title on every Java file.

(Let me know if you need any more information)

add environment variables for java and also ensure that you have added that Java to your IDE. Most probably its not selected that's why you are seeing this error.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM