eclipse中出现的问题
2015-07-09 09:55
603 查看
1、eclipse中出现Type 'xxxx' could not be resolved的处理方法
特别地,出现选择了上面以后仍然无效的情况下,比如:
Type 'FILE' could not be resolved
解决:
若仍然不行,请按 Ctrl + Shift + S 保存所有。
2、当成员分明包含了,那个函数时,却提示没包含,Member declaration not found, 是因为文件还没有保存的原因。按 Ctrl + Shift + S 保存所有即可。
3、当出现如下提示:
Eclipse is running under 1.6, but this Java project has a 1.7 Java compliance level, so WindowBuilder will not be able to load classes from this project. Use a lower level of Java for the project, or run Eclipse using
a newer Java version.
解决:
其它:
4、当出现如下界面(非Windows样式的界面):
解决:
在程序一开始添加代码:UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
即下图:
相对好些的:
try
{
UIManager.setLookAndFeel(UIManager
.getSystemLookAndFeelClassName());
}
catch (Throwable e)
{
// TODO: handle exception
e.printStackTrace();
}
如下图:
特别地,出现选择了上面以后仍然无效的情况下,比如:
Type 'FILE' could not be resolved
解决:
若仍然不行,请按 Ctrl + Shift + S 保存所有。
2、当成员分明包含了,那个函数时,却提示没包含,Member declaration not found, 是因为文件还没有保存的原因。按 Ctrl + Shift + S 保存所有即可。
3、当出现如下提示:
Eclipse is running under 1.6, but this Java project has a 1.7 Java compliance level, so WindowBuilder will not be able to load classes from this project. Use a lower level of Java for the project, or run Eclipse using
a newer Java version.
解决:
其它:
4、当出现如下界面(非Windows样式的界面):
解决:
在程序一开始添加代码:UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
即下图:
相对好些的:
try
{
UIManager.setLookAndFeel(UIManager
.getSystemLookAndFeelClassName());
}
catch (Throwable e)
{
// TODO: handle exception
e.printStackTrace();
}
如下图:
相关文章推荐
- Java实现图片裁剪预览功能
- 【Eclipse错误】Syntax error, parameterized types are only available if source level is 1.5
- java反射机制
- URL,URI,URN之间的区别
- Java之美[从菜鸟到高手演变]之HashMap、HashTable
- 【eclipse】用Eclipse编程时,查看源代码,显示Source not found问题的解决方法。
- Spring定时任务的几种实现
- Eclipse 编辑注释模板
- Spring定时任务的几种实现
- Java中处理有效字符,截取小数无效字符
- java实现冒泡排序
- java中用到的基本排序
- Java集合的小抄 Java初学者必备
- java类的生命周期
- Eclipse在异常关闭后,启动闪退的解决办法(转)
- Java根据用户生日计算年龄
- java中静态代码块的用法 static用法详解
- myEclipse 打不开struts-config.xml 报Could not open the editor: An unexpected exception was thrown 错误(转载)
- Java常用类型转换
- Java Annotation