在项目名上右键 -> Builder Path -> Configure Build Path -> 选择Source面板 再点Add Folder, 把源代码所在的包路径的上层目录加进来,而且如果你是把两个类写在一个文件里的话,你在右键选择Run As JavaAppication 的时候,要把光标至于包括main方法的类上
- 浏览: 224665 次
- 性别:
- 来自: 上海
-
文章分类
- 全部博客 (237)
- Spring (10)
- Java (54)
- Hibernate (5)
- MySQL (7)
- Oracle (35)
- Ext_JS (16)
- JavaScript (6)
- JQuery (2)
- ajax (1)
- 百度地图 (3)
- Flex (4)
- 网站设计 (3)
- 服务器 (1)
- myeclipse (11)
- CSS (4)
- maven (8)
- office (6)
- 下载网址 (2)
- GIS (1)
- Xshell (2)
- 网络 (1)
- svn (2)
- tsung (1)
- JSON (3)
- GBase (6)
- STS (1)
- storm (1)
- hadoop (1)
- JVM (1)
- JAVA-API摘录 (4)
- 系统架构 (3)
- 密码学 (1)
- Flume (2)
- Linux (20)
- WebService (3)
- 设计模式 (1)
- 数据库 (1)
- python (1)
- jquery easyui (1)
- redis (1)
- git (1)
最新评论
-
baozhutang:
这个问题是你没有按照官方命令来执行官方文档:$ bin/flu ...
No appenders could be found for logger (org.apache.flume.node.Application). -
jiangli15:
这么好的文章竟然没有评论?果断支持!!
设计模式
发表评论
-
cvc-complex-type.2.4.a: Invalid content was found starting with element 'async-s
2017-08-16 17:10 798http://blog.csdn.net/qq_258210 ... -
Referenced file contains errors (http://mybatis.org/dtd/mybatis-3-config.dtd).
2017-03-15 10:39 1621Referenced file contains er ... -
poi设置日期格式
2017-01-15 16:36 2354方法一: CreationHelper createHel ... -
java线程创建
2017-01-08 19:46 663Thread thread = new Thread ... -
Properties读取属性文件
2014-03-27 19:18 677读取属性文件 String propertyFileNam ... -
File.separator
2014-03-27 10:53 716文件分隔符 System.out.println(&quo ... -
负载均衡
2014-03-11 14:15 546nginxlvs -
java执行shell脚本,实现拷贝
2014-02-21 17:18 940java执行shell脚本代码: import java ... -
网络通信编程1-基本连接
2014-02-19 14:22 648服务器端: import java.io.Buffered ... -
Java NIO框架Mina、Netty、Grizzly介绍与对比
2014-02-18 12:01 737http://www.blogjava.net/javagr ... -
JAVA调用Shell脚本2
2014-02-12 16:22 465String[] shell = new String[] ... -
JAVA-Timer
2014-02-11 12:25 394定时器 -
JAVA线程
2014-02-11 12:17 546通道与缓冲 参考: http ... -
java正则表达式
2014-01-23 16:59 4311 Regular Expression Des ... -
java配置文件的读取写入的解决方案(getResourceAsStream的用法)
2014-01-16 16:57 1602http://cyxinda.blog.51cto.com ... -
JAVA调用Shell脚本
2014-01-02 14:06 1075http://blog.csdn.net/zhaoxinfa ... -
jdk安装
2013-12-20 14:13 660http://jingyan.baidu.com/ar ... -
String、StringBuffer、StringBuilder有什么区别?
2013-12-08 15:26 715http://www.jobui.com/mianshiti ... -
查看启动jar文件
2013-11-19 13:55 734启动jar文件 java -jar XX.jar 查看启动的文 ... -
java网站
2013-11-13 10:52 598http://supportopensource.itey ...
相关推荐
如果一个Java项目中的编辑器提示“does not contain a main type”或“selection does not contain a main type”,这通常意味着当前选中的文件或类没有包含正确的`main`方法。 #### 解决方法 1. **检查Main方法**...
(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...
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 ...
(*) 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)...
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 ...
- 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 - ...
(A)启动Excel,选择菜单“数据->导入外部数据->导入数据”,选择RadminM.txt文件; (B)文本导入向导第1步,直接单击“下一步”; (C)第2步必须选中“逗号”分隔符,再单击“下一步”; (D)第3步必须将所有18列都...
(A)启动Excel,选择菜单“数据->导入外部数据->导入数据”,选择RadminM.txt文件; (B)文本导入向导第1步,直接单击“下一步”; (C)第2步必须选中“逗号”分隔符,再单击“下一步”; (D)第3步必须将所有18列都...