简体   繁体   中英

Run a project without source .java files in Eclipse

I have a java project in Eclipse that I am trying to run/debug. When I run the project Eclipse goes into Debug mode and then throws a ClassNotFound Exception. I have a class folder in the default package in my project that contains all the necessary class files. Any help regarding this would be appreciated. Thanks!

The classes folder needs to be added to the project's classpath. Putting classes into the source directory isn't going to work. Go to project properties -> Java Build Path to configure this.

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