About troubleshooting: the main class cannot be found or loaded. Reason: Java Method of lang.classnotfoundexception
•
Java
The JDK is configured and the code @ h is written_ 419_ 1@
@H_ 419_ 1@ @H_ 419_ 1@
javac Hello. Java also successfully executed @ H_ 419_ 1@
@H_ 419_ 1@ @H_ 419_ 1@
However, there will always be errors when Java Hello: the main class Hello @ h cannot be found or loaded_ 419_ 1@
Reason: Java lang.ClassNotFoundException: Hello@H_419_1 @
@H_ 419_ 1@ @H_ 419_ 1@
I found many strategies on the Internet and found that many people have this mistake. Just tell me my solution @ h_ 419_ 1@
When setting environment variables, you need to add a ";" after classpath There will be no exception @ h_ 419_ 1@
@H_ 419_ 1@ @H_ 419_ 1@
@H_ 419_ 1@ @H_ 419_ 1@
@H_ 419_ 1@
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码