Eclipse Error: The main class resolution process could not be found or could not be loaded

Source: Internet
Author: User

Yesterday in the MyEclipse, want to use a package to replace the existing package, the hand to delete the existing package, and then copy the new package, the entire package below the right corner of the file appears a deep red fork (not the kind of error form of the Red Fork), and then found to run a simple Java program are error, Said can not find or cannot load the main class, and then to the file directory to find, really did not produce class file, and then on Baidu search answers, Baidu found the following several solutions, I first listed:

1, environment variables are not configured well

I opened my environment variable confirmed two times and found no problem

2, right button, Properties->java Build path->libraries has a jar with a fork, remove off on the line

I looked at each other and found that there was no problem with the jar package.

3, on the src file right-click Build Path->use as Source Folder

And I this SRC is already source folder, even if I ordered the build Path->remove from build Path, and then use as Source folder is useless

Here is my solution, can be said to be simple and rude ...

I directly remove the project from the workspace, and then re-import, unexpectedly solved!

Eclipse Error: The main class resolution process could not be found or could not be loaded

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.