原文:Could not find the main class

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

2020-05-19 09:37 0 1892 推荐指数:

查看详情

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
Error: Could not find or load main class Test

问题描述 Linux 环境下运行 Java 程序时,执行 javac Test.java 生成 Test.class 文件,再执行 java Test 时报错:Error: Could not find or load main class Test 解决方法 使用命令:vi ...

Sat Mar 16 19:43:00 CST 2019 0 3584
【java】Could 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
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
java 编译后 执行出现 Could not find the main class: 等 错误

我是用 IDEA 编写的 Java Maven项目。我在本地编译后 执行没有问题, 可在客户的机器(windows2000)上运行就出现 Could not find the main class: 等 错误 这个问题主要是 java 的版本不对应 起初我以为是 java 环境变量 ...

Fri Feb 25 17:43:00 CST 2022 0 1369
Linux 下 Error: Could not find or load main class Hello

在linux下写了一个很easy的Hello world程序,编译执行居然报错:Error: Could not find or load main class Hello 最后发现是CLASSPATH的问题。 首先须要检查jdk环境变量是否配置正确:參考这篇 ...

Sat Oct 25 01:02:00 CST 2014 0 8560
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM