昨天心血来潮,突然想写了个java类 写了个main方法,然后直接运行;然后问题出现了,如下图:
google了一把都说是java compiler版本不一致,然后也检查了本项目的java compiler的等级和我的工作空间的java compiler等级一样都是1.6,用的jdk1.6.0_45,也有说java环境变量配置错误,然后我又重新检查了一遍JAVA_HOME、CLASSPATH、PATH,发现环境变量也没有配置错误,实在郁闷,检查了半天,最后终于找到了解决办法,原来是我之前将这个项目的Builders中的Java Builder选项去除了,需要勾选上,然后clean下项目,重新运行 问题解决。
后来查了下Java Builder选项的作用,只找到了一个对其解释的链接如下:
http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Fconcepts%2Fconcept-java-builder.htm
相关推荐
### "Could Not Find the Main Class, Program Will Exit" 错误解析及解决方法 在Java编程过程中,我们经常会在开发环境中遇到各种各样的错误提示,其中“Could not find the main class, program will exit”是一...
在IT领域,尤其是在Java编程中,遇到“Can not find the main class. Program will exit.”这一错误信息是非常常见的问题。这通常意味着编译器或运行环境无法识别并定位到程序的主类,即包含main方法的类,从而导致...
NULL 博文链接:https://yintech.iteye.com/blog/374842
java反编译工具jd-gui-1.4.0.jar 可以查看jar包中的.class文件的java代码
### Java打包成JAR文件的方法及解决“Could not find the main class, Program will exit”错误 在Java开发中,将程序打包成一个可执行的JAR文件是非常常见且实用的操作。这种方式不仅便于程序的分发与部署,还能...
- FIX: In "Windows ClearType" font rendering mode (OS Windows mode) the "garbage" pixels can appear from the right and from the bottom sides of the painted rectangle of the TFlexText object....
- **Could not find the main class, Program will exit.** - 当遇到这类问题时,通常是因为JAR文件缺少必要的类或库。如果项目中使用了特殊库(如SWT等),则需要进行额外的配置。 4. **处理SWT等特定库的情况**...
The API's main purpose is not for transporting, delivering, and forwarding messages; this is the purview of applications such as sendmail and other Mail Transfer Agent (MTA) type programs. MUA-type...
The main advantage of running in-process is that the system usually does not need to perform a context switch. The disadvantage to running in-process is that DLL has access to the process address ...
2. **Java Virtual Machine Launcher问题**:若出现"could not find the main class.program will exit."的错误,可能是因为JDK版本过低。Auto_Runner需要1.5及以上版本的JDK。请确保已安装对应版本的JDK。 3. **...
If the class is not confident in their understanding, review appendix A04_Locking and its accompanying PowerPoint® file. Transactions in SQL Server provide the ACID properties: Atomicity A ...
MessageBox(NULL,"Could Not Unregister Class.","SHUTDOWN ERROR",MB_OK | MB_ICONINFORMATION); hInstance=NULL; // Set hInstance To NULL } } /* This Code Creates Our OpenGL Window. ...
class, optional commit support on Bochs exit, save/restore file attributes, 1.44 MB floppy support, set file modification date/time - converted the complete hdimage stuff to the new 'hdimage' ...
MessageBox(NULL,"Could Not Unregister Class.","SHUTDOWN ERROR",MB_OK | MB_ICONINFORMATION); hInstance=NULL; // Set hInstance To NULL } } /* This Code Creates Our OpenGL Window. Parameters Are: * * ...