`
panpan123mail
  • 浏览: 33283 次
  • 性别: Icon_minigender_1
  • 来自: SpringHill
社区版块
存档分类
最新评论

could not find the main class

阅读更多

真是搞笑,今天竟然莫名其妙地碰到这样的错误,帮那个小孩调试了半天才发现这样的低级错误:

原来他把包名取为:java.io.test.day1;换一个包名后运行正常

大概是和java源代码的中的类包取名相同才会报如此的错误吧!真的以后要注意这方面的问题,在取名时注意这些方面的忌讳!!!

感觉有些无聊.....

分享到:
评论

相关推荐

    Could not find the main class

    "解决 MyEclipse 8.5 中的 “Could not find the main class” 问题" "Could not find the main class" 是一个常见的错误提示,出现于 MyEclipse 8.5 中使用外带的 Tomcat 时,因 JDK 版本问题所引起。下面将详细...

    could not find the main class,program will exit

    ### "Could Not Find the Main Class, Program Will Exit" 错误解析及解决方法 在Java编程过程中,我们经常会在开发环境中遇到各种各样的错误提示,其中“Could not find the main class, program will exit”是一...

    jar文件Could not find the main class解决办法

    NULL 博文链接:https://yintech.iteye.com/blog/374842

    WIN7下运行Jar文件提示Could not find the main class

    在Windows 7系统下运行Java应用包(JAR文件)时遇到“Could not find the main-class”错误,是常见的问题之一。这个问题通常出现在尝试启动一个没有正确指定主类的JAR文件时。主类是包含main方法的类,它是程序执行...

    解决 Can not find the main class. Program will exit. 难题

    在IT领域,尤其是在Java编程中,遇到“Can not find the main class. Program will exit.”这一错误信息是非常常见的问题。这通常意味着编译器或运行环境无法识别并定位到程序的主类,即包含main方法的类,从而导致...

    burp suite1.7.26破解版无时间限制

    burp suite1.7.26破解版无时间限制 ,用于web安全性测试。 web中间人攻击 xss sql 注入 csrf 等常见漏洞 渗透测试必备

    jd-gui-1.4.0

    java反编译工具jd-gui, 1.4.0版本, 使用方式: 打开的文件应该为类似jar包文件,而不是单独的Class文件

    java打jar包的方法

    ### Java打包成JAR文件的方法及解决“Could not find the main class, Program will exit”错误 在Java开发中,将程序打包成一个可执行的JAR文件是非常常见且实用的操作。这种方式不仅便于程序的分发与部署,还能...

    【SpringBoot】Error: Could not find or load main class org.apache.hadoop.mapreduce.v2.app.MRAppMaster

    【SpringBoot】Error: Could not find or load main class org.apache.hadoop.mapreduce.v2.app.MRAppMaster报错明细问题解决后记 报错明细 IDEA SpringBoot集成hadoop运行环境,,本地启动项目,GET请求接口触发...

    sqoop-1.4.7.jar

    解决错误:Could not find or load main class org.apache.sqoop.Sqoop。把这个sqoop-1.4.7.jar放到sqoop根目录下的lib目录中,即可。 如果你没有积分,也可以自己去这个地址下载:...

    eclipse 下打包

    - **Could not find the main class, Program will exit.** - 当遇到这类问题时,通常是因为JAR文件缺少必要的类或库。如果项目中使用了特殊库(如SWT等),则需要进行额外的配置。 4. **处理SWT等特定库的情况**...

    IDEA打包jar-解决找不到或无法加载主类 main的问题

    <mainClass>Main</mainClass> <!-- 此处填入你的主类全限定名 --> ``` 确保`<mainClass>`标签内的值是你的主类的全限定名,例如,如果你的主类是`com.example.MyApp`,那么你应该填写`...

    Pentaho Report开发指导

    如果遇到“could not find the main class”的错误,可能是因为JVM版本过低,此时需要更新JVM并设置好环境变量,通过`java -version`命令检查版本是否正确。 **处理中文乱码问题** 在预览报表为PDF格式时,可能会...

    Auto_Runner使用教程

    2. **Java Virtual Machine Launcher问题**:若出现"could not find the main class.program will exit."的错误,可能是因为JDK版本过低。Auto_Runner需要1.5及以上版本的JDK。请确保已安装对应版本的JDK。 3. **...

    在eclipse中配置 jboss 图解

    因为这样的路径会导致MyEclipse在启动服务器时出现"Could not find the main class"错误。如果遇到此类问题,应立即移动JBoss到一个不含空格的目录。 5. **其他注意事项** - 配置过程中,确保MyEclipse和JBoss的...

    Myeclipse中配置 jboss 图解

    - 路径中存在空格会导致MyEclipse在启动服务器时报错:“Could not find the main class”。 - **其他注意事项**: - 在配置过程中确保所有步骤都正确执行。 - 检查JBoss版本与MyEclipse版本兼容性。 - 如果...

    SuperMap iServer Java初次安装与出图必读之Windows 操作系统篇

    如果未安装,安装过程最后会出现“could not find the main class”的错误提示。解决方案是在iServer Java的安装目录的支持文件夹(\support)下找到C++ 2008文件:`vcredist90_x86.exe`,并进行安装。 ##### 4. 许可...

    FlexGraphics_V_1.79_D4-XE10.2_Downloadly.ir

    - FIX: The TFlexPanel.FPaintCache field moved in the protected class section. Added rcPaint field in FPaintCache that represents drawing rectangle. - ADD: In the text prcise mode (TFlexText.Precise=...

    ESP8266智能家居项目(含mixly平台文件).zip

    ESP8266是一款经济实惠且功能强大的Wi-Fi模块,被广泛用于智能家居项目,因其能够连接互联网并控制各种硬件设备而备受青睐。本项目利用ESP8266,特别是其NodeMCU变种,实现了一个在线物联网平台,旨在提供远程控制和...

Global site tag (gtag.js) - Google Analytics