好久都没有写博了,还记得自己准备考研,结果你会发现——你永远不知道,你将会走上哪个路. 长远的目标是好的,但有些时候身不由己也迫不得已!做好自己的当下就是好的. 不论搞什么,总会遇到各种各样的问题,以下便是今天遇到的: XX cannot be resolved to a type 搞JIRA插件开发的时候,由于重启了一下ECLIPSE,导致出现了N多的红X,出现了以上的问题. 以下是我在网上搜到的:我采用了第三种方法,解决: 引言 eclipse新导入的项目经常可以看到“XX cann…
场景:在项目开发时,一个工程引用另一个工程中的文件,出现报错“XX cannot be resolved to a type”,但是在实际通过跟踪“F3”能够找到相应的文件,最终用方法4解决. 引言: eclipse新导入的项目经常可以看到“XX cannot be resolved to a type”的报错信息.本文将做以简单总结. 正文: 1 jdk不匹配(或不存在 ) 项目指定的jdk为“jdk1.6.0_18”,而当前eclipse使用的是“jdk1.6.0_22”.需要在BuildP…
转自Stack Overflow Remove all your failed downloads: Linux: find ~/.m2 -name "*.lastUpdated" -exec grep -q "Could not transfer" {} \; -print -exec rm {} Windows: cd %userprofile%\.m2\repository for /r %i in (*.lastUpdated) do del %i The…
错误调试解析: An error occurred at line: XX in the jsp file: /XX.jsp XX cannot be resolved to a type 解决方法: 一. 检查是否导入相应的包,在页面开头引入相应的包 <%@ page import="xx.Xx" %> 二. 因为某些特殊原因,MyEclipse没能自动编译源代码到build/classes(或其他classes目录), 导致类型查找不到,可能是MyEclipse未编译自…
Eclipse报错 due to restriction on required library C:/Java/jdk1.6.0_10/jre/lib/rt.jar 解决方案 Eclipse 编译时报错: Access restriction:The type NEW is not accessible due to restriction on required library C:/Java/jdk1.6.0_10/jre/lib/rt.jar 解决方法如下: 1.进入Project -…
最近离职来了一家新公司,之前的公司的开发IDE用的是IntelliJIDEA和SpringSourceToolSuit,自己在家里用的也是MyEclipse,所以使用eclipse的经验还是不足.结果在我配置好了jdk之后,双击eclipse,会出现报错Version 1.6.0_45 of the JVM is not suitable for this product. Version:1.7 or greater is required. 这个错误,说的是JVM要求的jdk的版本是1.7,…
Multiple annotations found at this line:- String cannot be resolved to a type- The method getContextPath() from the type HttpServletRequest refers to the missing type String 解决办法: 首先 右击该项目 - Build Path - Configure Build Path , 在 Libraries 选项下,会发现有个出错…
背景:在开发过程中,经常遇到各种各样的编译问题,不断的总结,才能更好的提高效率. 描述 [报错] :The method list(String, Object[]) is ambiguous for the type BaseHibernateDao<M,PK> [解决]: 原因:eclipse 的个bug,具体见http://stackoverflow.com/questions/10852923/method-is-ambiguous-for-the-type-but-the-types…
Shell代码 警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:test1' did not find a matching property. 对于这个问题,网上很多人给出的原因和解决方案如下: 写道 出现SetPropertiesRule警告的原因是因为Tomcat在server.xml的Context节…
在Eclipse中处理图片,需要引入两个包:import com.sun.image.codec.jpeg.JPEGCodec;import com.sun.image.codec.jpeg.JPEGImageEncoder;报错:Access restriction: The type JPEGImageEncoder is not accessible due to restriction on required library C:\Java\jre1.6.0_07\lib\rt.jar…
最近在学习java,在练习printf方法的使用时按照书上的语法配置却出现了报错.报错内容为:The method printf(String, Object[]) in the type PrintStream is not applicable for the arguments (String, double, double). 使用命令提示符运行java文件后,正常输出结果.确定是开发工具Eclipse的问题.在网上搜索关键字”Eclipse printf 报错“,发现网上有人反应过相同…