Eclipse to run using the specified JVM m2eclipse plugin can not find tools.jar

Used the m2eclipse plug-ins using struts2 when com.sun necessary to rely on the default-tools.jar, specifically because at the struts-annotations bag designated default-tools.jar
<id> default-tools.jar </ id>
<name> java.vendor </ name>
<value> Sun Microsystems Inc. </ value>
</ property>
</ activation>
<groupId> com.sun </ groupId>
<artifactId> tools </ artifactId>
<version> 1.5.0 </ version>
<scope> system </ scope>
<systemPath> $ (java.home }/../ lib / tools.jar </ systemPath>
</ dependency>
</ dependencies>
</ profile>
$ (java.home) in the eclipse does not use JAVA_HOME
By default, eclipse the use of C: \ windows \ system32 \ javaw.exe as a JVM, of course, can not find tools.jar

Solution is as follows:
Eclipse.exe modify designated eclipse.ini directory vm, attention-vm behind should not have spaces, but must be placed in front of us in-vmargs
D: \ Program Files \ Java \ jdk1.6.0_01 \ bin \ javaw.exe
Start again eclipse, will solve the problem.

分类:Java 时间:2009-03-04 人气:1220
blog comments powered by Disqus


  • JDK and Tomcat Lane tools.jar inside lib version to be consistent under the tools.jar 2010-03-25

    JDK and Tomcat Lane tools.jar inside lib version to be consistent under the tools.jar TOMCAT5.0 at run time by the emergence of the following errors: 2005-11-17 19:38:47 StandardWrapperValve [action]: Servlet.service () for servlet action threw excep

  • Missing indirectly referenced artifact com.sun: tools: jar: 1.5.0: system 4 kinds of solutions 2011-09-15

    eclipse in the first line pom.xml configuration file error, error message is: Missing indirectly referenced artifact com.sun: tools: jar: 1.5.0: system Because of the need the jdk tools. The fundamental reason is not specified the location of javaw.e

  • Problems in jboss6: BossXBRuntimeException: {http://java.sun.c/j2ee} name not found as 2010-11-10

    Recently deployed with the old jboss6 application, problems encountered and resolved it, and now it records, to facilitate future search. First, the deployment of jsp2.0 jboss6 application problems: org.jboss.xb.binding.JBossXBRuntimeException: {http

  • Sun acquired a year later: Oracle is successful? 2011-04-23

    Prior to Oracle, to take full control of the company's technology the first year of SUN, Oracle entered the era of multi-pronged, as company plans to open source community and Google's competing. However, Oracle also introduced a range of products an

  • 分析Sun没落原因:高层重硬件轻软件 2014-09-01

    导语:对于Sun Microsystems从当初最高市值2000多亿美金的IT巨擎败落到被甲骨文收购的原因,外界众说纷纭.美国科技网站InformationWeek评论人查尔斯·巴布科克(Charles Babcock)日前撰文指出,Sun衰落的主要原因是公司前任CEO斯科特·麦克尼利(Scott McNealy)侧重硬件.忽视软件的发展思路,最终给公司的失败埋下了祸根. 以下为文章主要内容: 主动承认错误 麦克尼利认为,征战商场的最佳热身方式是打冰球.他认为,要想当好一家科技公司的掌门人,团队

  • IBM收购Sun目标高远:不仅为了服务器 2014-10-21

    导读:国外媒体今天发表分析文章称,IBM 收购Sun Microsystems(以下简称Sun)无疑会提高电脑服务器市场出现一个绝对领导者的可能性,但在当前经济低迷的不利背景下,IBM耗资巨大的收购行动可能不会带来攫取市场份额的结果.也就是说,IBM收购Sun并不仅仅是为了获得其服务器资产,同时也将目光锁定Sun的其它资产,尤其是软件. 不仅为了服务器 Sun旗下的软件产品包括Java.MySQL和Solaris,能够为IBM提供一个在新兴开源和云计算技术市场获得优势地位的机会,这两项技术能够让

  • Ubuntu 10.04 install SUN JDK1.6 2010-06-07

    The following is set up under Ubuntu 10.04 SUN JAVA configuration steps: Oracle official website to download jdk-6u20-linux-i586.bin file The jdk-6u20-linux-i586.bin copied to / usr / lib / jvm / java folder Run sudo chmod a + x jdk-6u20-linux-i586.b

  • Ubuntu 10.04 set up under the SUN JAVA development environment 2010-06-09

    The following is installation and configuration steps Install open-jdk-6, sudo apt-get install open-jdk-6 (I do not know why not to install the java and javac commands can not run!!!) Oracle official website to download jdk-6u20-linux-i586.bin file T

  • Run build.xml, appear Error starting Sun's native2ascii 2010-07-18

    In a web project, run build.xml file is there Error starting Sun's native2ascii , I found a variety of possible situations, other colleagues have not had this problem, was very depressed, is also found in the online solution: Copy the JDK directory u

  • In the JSP in This absolute uri cannot be resolved - the solution 2010-08-28

    About JSP in org.apache.jasper.JasperException: This absolute uri cannot be resolved in either web.xml or the jar files deployed with this application According "master JSP - Web application development technology a

iOS 开发

Android 开发

Python 开发



PHP 开发

Ruby 开发






Javascript 开发

.NET 开发



Copyright (C), All Rights Reserved. 版权所有 闽ICP备15018612号

processed in 0.039 (s). 13 q(s)