from site:stackoverlfow.com https://stackoverflow.com/questions/18093928/what-does-could-not-find-or-load-main-class-mean
You need to understand the concept of the “classpath”.This is explained well by the Oracle document:
- The java command documentation https://docs.oracle.com/javase/7/docs/technotes/tools/windows/java.html
- Setting the Classpath https://docs.oracle.com/javase/7/docs/technotes/tools/windows/classpath.html
- The Java Tutorial.-PATH and ClassPath https://docs.oracle.com/javase/tutorial/essential/environment/paths.html
- 本文作者: DieselNiu
- 本文链接: http://niuweizhe.cn/2022/01/13/java之classPath/
- 版权声明: 本博客所有文章除特别声明外,均采用 MIT 许可协议。转载请注明出处!