The Java class file was not created in the classes folder
•
Java
I am compiling a java program with the following command:
Ironically, the generated class file is created in the same source folder that is not in the classpath So every time I compile, I have to move the class file Yes, I have correctly specified the package in the source How?
Solution
You should use
-The CP option is used to set the classpath, not to specify the output directory
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
二维码