eclipse trying to load a class that does not exist anymoe

Home / Uncategorized / eclipse trying to load a class that does not exist anymoe

Question:
I have a big project and i decided to change some of the packages inside and also rename and delete some classes. After I did it I am getting an error of: java.lang.ClassNotFoundException: Main.Ser_Network.

That class does not exist anymore and i have replaced it with a different class and changed all the references to it inside the project. I have also tried Project –> Clean.

Nothing works and i don’t know what else i can do.

EDIT

I created a brand new project, created new packages and new class file (same names) and i am still getting this error.

How can i solve this issue? This is very important, any help would be appreciated. Thank you.


Answer:
Make sure that all references to the class are not in your code. You can do this by searching for it with a Ctrl+H. Also try right-clicking your project folder and clicking "Close Project." Then try re-opening your project and rebuilding.
Read more

Leave a Reply

Your email address will not be published. Required fields are marked *