`
tidylee
  • 浏览: 5661 次
社区版块
存档分类
最新评论

Could not find main function in class

    博客分类:
  • Java
阅读更多

"Could not find main function in class" 出现有多种可能:

1,Class 编写出错,缺乏public static void main(final String[] args) 方法;

2,编译版本过高,比如项目默认使用了1.7版本进行编译,但jre使用1.6,运行时就会抛"Could not find main function in class",并有version not support,offerset =...之类的错误提示。

3,编译路径与src路径不一致,eclipse 无法自动找到Java文件对应的Class文件。

分享到:
评论

相关推荐

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

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

    The main reason for making a virtual function inline is to place its definition in the class, either for convenience or to document its behavior, e.g., for accessors and mutators. The -inl.h Files...

    Senfore_DragDrop_v4.1

    Delphi's THandle type when a HWND is passed to a function. E.g.: if (DragDetectPlus(THandle(MyControl->Handle), Point(X, Y))) { ... } * Virtual File Stream formats can only be pasted from the ...

    数位板压力测试

    This specification was developed in response to a perceived need for a standardized programming inter-face to digitizing tablets, three dimensional position sensors, and other pointing devices by a ...

    BobBuilder_app

    I decided against using SortedDictionary for the pages as it was slower than a normal Dictionary and for the purpose of a key value store the sorted-ness was not need and could be handled in other ...

    C# Game Programming Cookbook for Unity 3D - 2014

    1.1.3 Using the Singleton Pattern in Unity...........................5 1.1.4 Inheritance.................................................6 1.1.5 Where to Now?.............................................

    CE中文版-启点CE过NP中文.exe

    If you encounter bugs or have suggestions, please do not hesitate to report them in the forum, bugtracker or by e-mail. And if you have questions, don't hesitate to ask them in the forum Fixes: Fixed...

    王小平版遗传算法的光盘源代码

    The main() is located in lib/gpc.c The top-level loop which iterates over the generations is in generations.c The data structures which you must work with are in the file gpc.h Expressions ...

    CSharp英语

    In the context of programming, `Ceiling` typically refers to a mathematical function that rounds a number up to the nearest integer. In C#, the `Math.Ceiling` method is used to return the smallest ...

    Bochs - The cross platform IA-32 (x86) emulator

    [2964655] VMX not enabled in MSR IA32_FEATURE_CONTROL [3005865] IDT show bug [3001637] CMOS MAP register meaning error [2994370] Cannot build with 3DNow support - these S.F. feature requests were...

    delphi 2007 第三方补丁

    - Added fix for: Error Insight fails to find TObject class - Added fix for: Possible deadlock when Error Insight calls ProcessMessages 2009-02-18: - Added for for IDE may select the wrong file when...

    微软内部资料-SQL性能优化2

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

    微软内部资料-SQL性能优化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 ...

    Visual C++ 编程资源大全(英文源码 控件)

    in class that provides a 'hot' look button using the _TrackMouseEvent function(17KB)<END><br>52,CLedButton_src.zip A button that looks like a LED.(24KB)<END><br>53,EllipticalButtons.zip A class ...

    jquery-1.1.3 效率提高800%

    It allows you to locate individual items in a space-separated attribute (such as a class or rel attribute). <br>$("a[@rel~=test]")Animation Improvements <br>参数: options 返回值: ...

    常见C语言错误提示信息

    #### Could not find file ''xxx'' (找不到文件 ''xxx'') **描述**: 编译器无法找到指定的文件。 **解决方法**: 确认文件路径是否正确,检查文件是否存在。 #### Declaration missing `;` (声明缺少分号) **描述...

Global site tag (gtag.js) - Google Analytics