正确设置所有路径,仍然获得Java.lang.classnotfoundexception
我知道这是在几种设置中的常见问题,但是我仍然无法解决它:
当我想从一个以前工作良好的项目中运行一个主机时,我总是得到
Error: Could not find or load main class ProjectMain Caused by: java.lang.ClassNotFoundException: ProjectMain
我已经正确设置了路径和classpath(我猜) ,编译器运行正常。 我只是可以将通往.EXE文件的JRE的路径设置为“不要单独”。
Java版本“ 17.0.3.1” 2022-04-22 LTS Java(TM)SE运行时环境(构建17.0.3.1+2-LTS-6) Java热点(TM)64位服务器VM(构建17.0.3.1+2-LTS-6,混合模式,共享) 有什么想法出了什么问题?
I know it´s a common question in several settings, but I still couldn´t fix it:
when I want to run a main from a formerly well working project, I always get
Error: Could not find or load main class ProjectMain Caused by: java.lang.ClassNotFoundException: ProjectMain
I have set the path and the Classpath correctly ( I guess), the compiler is running properly.
I just could set the path to the JRE to the .exe file, don't get it separately.
Java version "17.0.3.1" 2022-04-22 LTS
Java(TM) SE Runtime Environment (build 17.0.3.1+2-LTS-6)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.3.1+2-LTS-6, mixed mode, sharing)
Any ideas what goes wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论