原文:java 编译后 执行出现 Could not find the main class: 等 错误

我是用IDEA编写的Java Maven项目。我在本地编译后执行没有问题, 可在客户的机器 windows 上运行就出现Could not find the main class: 等 错误 这个问题主要是java的版本不对应 起初我以为是java环境变量没有设置正确。 在系统中发现之前有个安装版的Java . 而项目需要java . 位 运行java version发现是 . 的版本 解决方法: ...

2022-02-25 09:43 0 1369 推荐指数:

查看详情

windows 双击执行jar包出现:could not find the main class

{一}动机 最近自己写了个小应用,用于生成子系统树需要的配置信息,打包为可执行jar发给其他同事使用时双击jar包提示“could not find the main class”. 首先当然要检查一下JRE环境等,经过一番折腾整理如下几项注意点(首先说明一下是在windows7 ...

Wed Jun 26 00:30:00 CST 2013 0 3436
Could not find the main class

  最近开发了一个短信报警的服务,打成程序包之后,再本地windows启动(start.bat)没有问题,但是发到生产环境,报如下错: Could not find the main class 莫名其妙的报错,网上查了一下,都无法解决,后来想到既然我本地是正常的,那很有可能是环境问题 ...

Tue May 19 17:37:00 CST 2020 0 1892
javaCould not find or load main class

https://stackoverflow.com/questions/18093928/what-does-could-not-find-or-load-main-class-mean A common problem that new Java developers experience ...

Fri Jul 27 22:35:00 CST 2018 0 2339
could not find the main class, Program will exit java编译器版本的问题

could not find the main class, Program will exit (很抱歉,如果你希望能更加清楚地看清图片或是图上的文字的话,你可以按住 ctrl 不动,然后向上滚动鼠标的滚轮。要改变回来同理向下滚动即可、) -------------------------------------------- ...

Thu Apr 05 02:04:00 CST 2012 0 8982
could not find or load main class

记一篇由于字符编码导致的无法正常启动的错误 运行环境 win10 英文版本 jdk 1.8 错误:could not find or load main class 该项目是海康威视下载的一个SDK,导入到IDEA中,没想到却会遇到这问题。 操作步骤如下: 1 下载SDK ...

Wed Dec 18 19:48:00 CST 2019 2 529
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM