简体   繁体   中英

Eclipse: I can't find Java Build Path in Project Properties

As the question states, I can't find the Java build path within the project properties itself

我的问题的照片

My main issue is that I keep getting "The Class file is not on the classpath" error whenever I try to open a .class file from a school project. To fix this I need to access the Java build path within project properties but it is not showing up for me. I'm not sure how to fix this.

I don't have Mac, but i guess You should try this if you haven't done it yet.

File-Import-Existing_project into the workspace. Browse to the location where the .classpath and .project files locates in your project.

Then check your environment variables (google can help with this) and classpath variables: Window - Preferences - Java - Build Path - Classpath Variables.

The project seems like is a general project (No java project), so it's normal that 'Java build' option is missed.

Besides, you can't open .class files, because is a Java compiled file by the Java compiler. You must search for .java files.

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