Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I edit the (runtime) classpath in Eclipse?

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.)

like image 604
Xonatron Avatar asked Feb 14 '12 18:02

Xonatron


People also ask

How do I find my classpath runtime?

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.

What is classpath variable in Eclipse?

The CLASSPATH environment variable tells the Java Virtual Machine and other Java applications where to find the class libraries, including user-defined class libraries.


1 Answers

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.

like image 113
Xonatron Avatar answered Sep 22 '22 12:09

Xonatron