In Eclipse, while trying to start Tomcat, I am getting this error:
The project: xxxxxxs which is referenced by the classpath, does not exist.
The reason is, I renamed my project from xxxxxxs
to xxxxxx
(note no "s"). It is still referencing the old one. Where is the (runtime) classpath and how do I edit it?
I know this is simple, and I've looked.
(Similar to Java Eclipse - How do I change the classpath? but I just want to know how to edit it, not how to solve my particular problem.)
Check your runtime classpath by going to Run -> Run Configurations and select your application configuration. Check the classpath setting there. There is another workaround for this also. Eclipse by default will include your output folder (usually named bin) in your classpath.
The CLASSPATH environment variable tells the Java Virtual Machine and other Java applications where to find the class libraries, including user-defined class libraries.
Found it now that I've asked:
Run -> Run Configurations... -> Classpath
This is for the runtime classpath, for build classpath editing, see Java - Problem with the classpath on Eclipse.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With