-
cmd needs to load the class file before running.
-
The reason for your failure is that the file name is inconsistent with the class name, your file name is untitled1, and the class name is not started.
You can also call the class name untitled1.
public class untitled1}
-
This is the best way for me to do this, and I don't have to worry about the class path anymore.
Remember that you must restart cmd after modification, and every time you make an external change, you must restart cmd before it will be displayed.
-
In addition to the reasons mentioned above, I came across this - the letters of the file name are case-sensitive!!
-
Web Links.
Hope it helps!
-
1. The environment variables are not well configured, please configure them correctly, and add a semicolon (; That's it.
2. The public statement on the class ** with the main method is not passable.
3. The file name should be consistent with the class name. (This is the reason why you are wrong now, please change 1 to helloworld).
If you have any questions, please feel free to ask, satisfied, thx!
-
Directly above, this is the case with package.
-
The name of the helloworld class is the same as the file name, and it's all uppercase (mine is that the file name is not capitalized.
-
The class of your file does not have a class name, generally the class name should be the same as the file name, add the class name and try again, for example.
class a}
-
Would you not save the file, or not have the main method?
Use Eclipse or Idea to see why.
-
It should still be a problem with environment variables, see if your path and classpath are correct, the most likely error is that the classpath is missing the previous one.;
-
Take a look at ** to know what you are missing and what is not missing main
After opening, the administrator window will pop up, and then we type "ipconfig flushdns" and press enter. >>>More
They themselves have opposite charges, and human beings later artificially stipulated that the glass rod rubbed with silk is positively charged, and the plastic rod rubbed with fur is negatively charged, and the charge of the proton belt is the kind of charge carried by the glass rod after the glass rod rubbed by silk, and the charge of the electron belt is the kind of charge carried by the plastic rod rubbed with the fur, so it is stipulated that the electron is negatively charged, and the proton is positively charged.
Because msconfig and regedit exist in the %systemroot% pchealth helpctr binaries directory instead of %systemroot% or %systemroot% system32, you can't omit their paths and just run the filename open. >>>More
It's possible that your question was duplicated and deleted! >>>More
Whether it is installed correctly. Otherwise, it won't work. >>>More