Cg2916
Cg2916

Reputation: 1117

Eclipse Throws Weird ClassNotFoundException

Apparently, Eclipse can't find a class from within said class. Here is my error (for some reason, Stack Overflow doesn't like the formatting on here): http://paste.ubuntu.com/686811/

Here is my main method: http://paste.ubuntu.com/686812/

It was fine for a long time, but all of a sudden, it broke.

Upvotes: 0

Views: 108

Answers (2)

polypiel
polypiel

Reputation: 2341

Maybe you have the EscapeComponent lib in your build path you don't export it in runtime.

Go to project properties, "Java Build Path" option, "Order and Export" tab and make sure that the lib that holds EscapeComponent is selected. Otherwise it won't be available in runtime and so NoClassFoundException happens.

Upvotes: 0

seedhead
seedhead

Reputation: 3805

In Eclipse determine if the EscapeComponent is in your build path. An easy way to do this is by going to the "Navigate" menu and selecting "Open Type" and entering "EscapeComponent".

If Eclipse doesn't find any class by that name there's your problem.

Upvotes: 1

Related Questions