Two common problems with Java execution (unable to load main class)

Source: Internet
Author: User

Problem 1:javac not internal or external commands

Issue 2: The main class cannot be found or cannot be loaded * * *

Both of these issues are related to the configuration of the JDK, one is the path and the other is classpath. Path: Where to find the tools to compile or run (must be set), Classpath: Where to find the class file that needs to be run (Java5 start not set). Pat configuration Error, problem 1,classpath configuration error two. When configured point in time "." Represents the current path, and if CLASSPATH is configured, the current path is first found, and if so, the configured path is first found. When both of these problems occur, check to see if your path and CLASSPATH are configured correctly.

Two common problems with Java execution (unable to load main class)

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.