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