这个问题一般是由于使用了eclipse插件引起的,在使用一些框架时候,需要依赖com.sun的default-tools.jar,
是由于${java.home}的引起的,eclipse没有使用JAVA_HOME
eclipse默认使用的是 C:"windows"system32"javaw.exe作为JVM,所以找不到tools.jar
解决方式:修改eclipse.ini ,指定eclipse的JVM
添加:
-vm
"C:\Program Files\Java\jdk1.6.0_22\bin"
指定了对应的路径之后发现还是有问题,报maven missing tools.jar
解决方式:在pom.xml加入依赖
<dependency>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<version>1.6.0</version>
<scope>system</scope>
<systemPath>C:/Program Files/Java/jdk1.6.0_22/lib/tools.jar</systemPath>
</dependency>
分享到:
相关推荐
The type org.apache.tools.ant.Task cannot be resolved. It is indirectly referenced from required .class files错误....., 解决办法:在工程中加入此jar包
The type org.xmlpull.v1.XmlPullParser cannot be resolved. It is indirectly referenced from required .class files报错时导入xmlpull_1_0_5.jar
It is indirectly referenced from required .class files 调试Reflact时,Eclipse一直提示The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files。...
validation-api-2.0.0.Final.jar 主要用于支持Maven项目,缺失可引起以下异常The type javax.validation.Payload cannot be resolved. It is indirectly referenced from required .class files
The type org.springframework.dao.DataAccessException cannot be resolved. It is indirectly referenced from required .class files 解决方法: 导入spring-tx-4.2.2.RELEASE.jar包。
The type com.google.j2objc.annotations.ReflectionSupport$Level cannot be resolved. It is indirectly referenced from required .class files
jaxrpc.jar下载 The type javax.xml.rpc.ServiceException cannot be resolved.It is indirectly。。。用于webServices 的 客户端和服务端的解析 工具
The type org.apache.tools.ant.Task cannot be resolved. It is indirectly referenced from required .class files 部署openfire4.2.1
在IT行业中,矩阵运算在图形学、物理学、工程计算等领域有着广泛的应用。Java作为一个多用途的编程语言,也提供了处理矩阵运算的库,比如VecMath。VecMath是Java 3D的一部分,它提供了一系列用于向量和矩阵操作的类...
The type org.springframework.dao.DataAccessException cannot be resolved. It is indirectly referenced异常缺少的包
It is indirectly referenced from required .class > ★BasicNameValuePair cannot be resolved to a type > ★HttpPost cannot be resolved to a type > ★NameValuePair cannot be resolved to a type > ★...
operating system, as well as its variant, the GNU/Linux operating system. Although the Lesser General Public License is Less protective of the users' freedom, it does ensure that the user of a ...
Special Report on Gene Therapy Companies, K. K. Jain. Chichester: Wiley, 2000....directly or indirectly involved in gene therapy. Informa- tion on these companies was prepared by summarizing pu
Version 1.7 ----------- - ADD: Delphi/CBuilder 10.2 Tokyo now supported. - ADD: Delphi/CBuilder 10.1 Berlin now supported. - ADD: Delphi/CBuilder 10 Seattle now supported. - ADD: Delphi/CBuilder XE8 ...
Pro JSP 2, Fourth Edition ...or indirectly by the information contained in this work. The source code for this book is available to readers at http://www.apress.com in the Source Code section.
前端以 request payload形式传参,通过qs.min.js实现传参,实现后台接收 。
Any object in Message or Runnable posted to android.os.Handler will be hard referenced for some time. If you create anonymous Runnable and call to postDelayed with large timeout, that Runnable will ...
Special Report on Gene Therapy Companies, K. K. Jain. Chichester: Wiley, 2000....directly or indirectly involved in gene therapy. Informa- tion on these companies was prepared by summarizing pu
The system address space is where the kernel, executive, HAL, boot drivers, page tables, pool, and system cache reside. For specific information regarding address space layout, refer to Inside ...