`
rorriM
  • 浏览: 13495 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

问题真多..又出现了Can not find the main class. 的问题.汗~~

阅读更多
在eclipse中编译时出现了Can not find the main class. Program will exit.
我晕吖.终于在CSDN中问到了答案。在此多谢yinyuan1987

下面引用他的答案。
解决 Can not find the main class. Program will exit. 难题

运行时跳出can not find the main class,program will exit!

出现这个错误是由于你的jdk版本与eclipse高版本配置造成的,
解决如下:
点击 窗口->首选项
点击编译器,把“编译器一致性级别”从5.0改成1.4试试吧

( 我觉得如果安装的是 JDK 1.5.x,那么可以选择5.0,至少我是这么做的,而且成功了。) 

当然这里只是给你说的是版本不匹配的问题

建议使用jdk6.0来配eclipse3.4
分享到:
评论

相关推荐

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

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

    win7 解决导出jar包提示 can not find the main class

    ### Win7下解决导出JAR包提示“can not find the main-class” #### 背景 在使用MyEclipse等开发工具进行Java程序开发时,我们常常会遇到需要将项目打包成JAR文件以便于分发或部署的情况。然而,在Windows 7系统下...

    java常见的语法错误

    Java编程语言中,语法错误是开发者经常会遇到的问题。这些错误通常是由于不正确的代码结构或违反了语言规则导致的。以下是一些常见的Java语法错误及其详细解释: 1. **变量可能未初始化**:当一个变量被声明但未...

    FlexGraphics_V_1.79_D4-XE10.2_Downloadly.ir

    - 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....

    Senfore_DragDrop_v4.1

    doesn't extract the files and the files thus can't be copied/moved. This is caused by a quirk in WinZip; Apparently WinZip doesn't like IDataObject.GetData to be called before IDropTarget.Drop is ...

    数字图像处理VC程序

    not only demonstrates the basics of using the Microsoft Foundation classes but is also a starting point for writing your application. This file contains a summary of what you will find in each of the...

    The Indispensable PC Hardware Book - rar - part1. (1/7)

    1. The Main Components of a PC. The Computer and Peripherals. Inside the Personal Computer. How to Open the Case. Protecting Yourself Against Electric Shocks. Pearson Techonology Group - ...

    MyPlayer

    CMyPlayerApp application class. MyPlayer.cpp This is the main application source file that contains the application class CMyPlayerApp. MyPlayer.rc This is a listing of all of the ...

    xml_treectrl.rar

    CSLTApp application class. SLT.cpp This is the main application source file that contains the application class CSLTApp. SLT.rc This is a listing of all of the Microsoft Windows resources that ...

    Google C++ Style Guide(Google C++编程规范)高清PDF

    For example, if your header file uses the File class in ways that do not require access to the declaration of the File class, your header file can just forward declare class File; instead of having ...

    测量坐标转换程序及其示例

    CMyApp application class. 坐标转换.cpp This is the main application source file that contains the application class CMyApp. 坐标转换.rc This is a listing of all of the Microsoft Windows ...

    MICROSOFT FOUNDATION CLASS LIBRARY

    This file contains a summary of what you will find in each of the files that make up your Test application. Test.dsp This file (the project file) contains information at the project level and is ...

    DICOM转BMP相关源程序

    CDicomBMPApp application class. DicomBMP.cpp This is the main application source file that contains the application class CDicomBMPApp. DicomBMP.rc This is a listing of all of the Microsoft ...

    类似qq的开发

    This file contains a summary of what you will find in each of the files that make up your ChatClient application. ChatClient.dsp This file (the project file) contains information at the project ...

    drawGraphics

    CDrawGraphicsApp application class. drawGraphics.cpp This is the main application source file that contains the application class CDrawGraphicsApp. drawGraphics.rc This is a listing of ...

    视频点播软件

    CEtVodApp application class. EtVod.cpp This is the main application source file that contains the application class CEtVodApp. EtVod.rc This is a listing of all of the Microsoft Windows ...

    AutocomplectionCtrl

    CCAutocomplectionDemoApp application class. CAutocomplectionDemo.cpp This is the main application source file that contains the application class CCAutocomplectionDemoApp. CAutocomplectionDemo.rc...

    QQ源代码,IM即时通信源码,B语言,C/S模式

    CQQ_SeverApp application class. QQ_Sever.cpp This is the main application source file that contains the application class CQQ_SeverApp. QQ_Sever.rc This is a listing of all of the Microsoft Windows ...

    VC ++图书管理系统

    This file contains a summary of what you will find in each of the files that make up your Library application. Library.dsp This file (the project file) contains information at the project level and ...

    DVR-MPEG4编码播放器

    This file contains a summary of what you will find in each of the files that make up your Mp4Player application. Mp4Player.dsp This file (the project file) contains information at the project ...

Global site tag (gtag.js) - Google Analytics