Home > Back-end > The novice consult: error: can't find or unable to load the main class how to solve
The novice consult: error: can't find or unable to load the main class how to solve
Time:10-19
Say the first computer configuration environment Installation of jdk1.8.0 _221 Program is to use the NetBeans IDE 8.2 Also by browsing to post their configuration of the environment variable, but in the CMD command line running always quote could not find the mistake or unable to load the main class
Program is installed in the default directory
Configuration of environment variables also posted Create the JAVA_HOME
This is the path variable configuration inside
Created a system variable CLASSPATH
Environment variables can be configured after the show version of
Source files in D disk folder, but through the CMD command line would be an error
But if it is running under the NetBeans IDE 8.2, will show success
Also read many posts online, some said without package field, some said environment variable configuration has a problem, I have tried and still no solution, turn to the great god see me is where configuration has a problem,
CodePudding user response:
Run a specified directory of the Java program with cp (classpath) parameter specifies the class file directory