Error "Error: The main class could not be found or could not be loaded" in Java runtime

Source: Internet
Author: User

Just beginning to learn Java, configuring the completion environment variable, when running the test instance, always " error: Cannot find or Load main class " error.

Look for a long time to say is Classpath configuration error, but how to see there is no wrong. See a blog post finally solved. Blog Source http://blog.chinaunix.net/uid-22002627-id-3455122.html


is to put the Classpath value, at the top of the ".;", and to restart the DOS interface.

Now it's finally ready.


In the blog post mentioned in the path also to add ".;", the test itself, can not add.

This article is from the "360°erp" blog, make sure to keep this source http://360erp.blog.51cto.com/1946797/1703539

Error "Error: The main class could not be found or could not be loaded" in Java runtime

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.