This is the common issue with Eclipse , even I faced many times . This is not related to Eclipse or any other IDE tool.
This issue occurs when you are trying to run your main() method with respective class, its looking for the exact .class file in the class path.During the execution the .class file is not available in the class path. The best way to resolve this is, add the .class file into class path.
There are many possible diagnosis you can do in your Eclipse for this issue. As per the Eclipse behavior when you are updating the class path (Build Path) , your class is getting compiled that time and the .class file got created. So, Be careful when doing the build path for your project.
Also check your Build Path, if any jar file is missing. Because, its might causes sometime.
In my case I just found the jar file missing in the build path , and I removed the missing jar and added new jar file from other location.Then executed my class with main method and it works. Below screenshot shows my issue.
TechBytes is a practical technology blog for developers and technology enthusiasts, covering programming, backend development, data engineering, cloud, DevOps, AI, software architecture, system design, and emerging technologies through practical articles, tutorials, examples, and insights.
Showing posts with label Eclipse Error. Show all posts
Showing posts with label Eclipse Error. Show all posts
Wednesday, April 29, 2015
Subscribe to:
Posts (Atom)
