`

selection does not contain a main type

    博客分类:
  • Java
 
阅读更多

在项目名上右键 -> Builder Path -> Configure Build Path -> 选择Source面板 再点Add Folder, 把源代码所在的包路径的上层目录加进来,而且如果你是把两个类写在一个文件里的话,你在右键选择Run As JavaAppication 的时候,要把光标至于包括main方法的类上

分享到:
评论

相关推荐

    空心J的java文件问题解决方法

    如果一个Java项目中的编辑器提示“does not contain a main type”或“selection does not contain a main type”,这通常意味着当前选中的文件或类没有包含正确的`main`方法。 #### 解决方法 1. **检查Main方法**...

    SSD7 选择题。Multiple-Choice

    (b) The type of relationship that does not belong anywhere (c) The type of relationship between entities of one entity type (d) A never-ending type of relationship Correct answer is (c) 2. In...

    FlexGraphics_V_1.79_D4-XE10.2_Downloadly.ir

    type can now be defined as a sequence: TEnum = ( eOne, eTwo ); . . . EnumProp.SetItem(integer(eOne), 'One'); EnumProp.SetItem(integer(eTwo), 'Two'); If some items are skipped when filling data ...

    BURNINTEST--硬件检测工具

    (*) Windows 2000 does not support the CD-RW burn test. The advanced RAM test is only available under Windows 2000 and Windows XP professional (the other RAM tests are supported under the other OS's)...

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

    The leaf level of a clustered index contains the data pages, not just the index keys. Another way to say this is that the data itself is part of the clustered index. A clustered index keeps the data ...

    WPTools.v6.29.1.Pro

    - pro and premium: Due to a problem with precompiler cursoir selection did not work correctly 8.3.2012 - WPTools 6.25.3' - borders for paragraphs with multiple lines were not drawn correctly - ...

    Radmin自动登录器v3.0-多国语言绿色版-Release1-20150615

    (A)启动Excel,选择菜单“数据->导入外部数据->导入数据”,选择RadminM.txt文件; (B)文本导入向导第1步,直接单击“下一步”; (C)第2步必须选中“逗号”分隔符,再单击“下一步”; (D)第3步必须将所有18列都...

    Radmin自动登录器v3.0

    (A)启动Excel,选择菜单“数据->导入外部数据->导入数据”,选择RadminM.txt文件; (B)文本导入向导第1步,直接单击“下一步”; (C)第2步必须选中“逗号”分隔符,再单击“下一步”; (D)第3步必须将所有18列都...

Global site tag (gtag.js) - Google Analytics