使用Eclipse遇到问题记录

 

Q1. 2011-2-11 安装m2e插件后启动出现提示,如下:

 

 使用Eclipse遇到问题记录
解决:
编辑 eclipse.ini,增加 vm 配置(指定 jdk),配置片段e.g. :

-vm

E:\jdk1.6.0_23\jre\bin\javaw

参考:http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.platform.doc.user/tasks/running_eclipse.htm

 

 

Q2. 2011-2-11 v3.5中的project导入到v3.6里后,代码:@SuppressWarnings("unchecked") 处出现warning

原因:v3.5用 @SuppressWarnings("unchecked")  处理 unchecked 和 raw types 这2种 warnings,这与javac 不符,v3.6 将2者进行了区分,新增加了 @SuppressWarnings("rawtypes") 专门用于  raw types warning。

解决:编辑 eclipse.ini,在 vmargs 下增加如下配置 : -DsuppressRawWhenUnchecked=true

参考:http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.jdt.doc.isv/porting/3.6/incompatibilities.html

 

 

Q3. 生成 Javadoc 时出现乱码失败。

原因:默认字符集与项目字符集不符

解决:生成时在 VM options 处指定正确的字符集,如 : -encoding UTF-8

 

引自:http://huibin.iteye.com/blog/458902 

 

 

Q4. 2012-7 调试时当前变量未出现在 Variables 窗口中

原因:源码和class不一致。

解决:使用正确的源码。

 

Q5. 2012-10-10 系统重装后,设置字体时没有Courier New选项

原因:操作系统中该字体为“隐藏”状态。

解决:将该字体状态修改为“显示”即可

 

Q6. 2013-5-3 之前OK的一个project进行svn切换后,某个类中报编译错误,查看错误,提示为:Access restriction:The type *** is not accessible due to restriction on ... rt.jar

原因:不明。

解决:Project -> Properties -> libraries   先 remove 掉 JRE System Library,然后再 Add Library 重新加入。

你可能感兴趣的:(eclipse)