in this part of POM.xml, i am getting error獲得以下錯誤的pom.xml:你需要運行建立與JDK或有工具的.jar
你需要運行建立與JDK或有工具的.jar的類路徑...
**我已經嘗試添加JDK的jre路徑
**在
配置構建路徑中還添加了的tools.jar - 外部的lib
但沒有運氣...
in this part of POM.xml, i am getting error獲得以下錯誤的pom.xml:你需要運行建立與JDK或有工具的.jar
你需要運行建立與JDK或有工具的.jar的類路徑...
**我已經嘗試添加JDK的jre路徑
**在
配置構建路徑中還添加了的tools.jar - 外部的lib
但沒有運氣...
In Eclipse
------------
Go to properties --> Java build path -->Add the JDK Don't add the jre.build and check.If not run build path double click the jre system library --> select the Installed JRE -->select edit ----> Add the external jar -->go to the java installed path C:\Program Files\Java\jdk1.8.0_91\lib select tools.jar .Now build it
**Add the dependency**
<plugin>
<groupId>com.mysema.maven</groupId>
<artifactId>apt-maven-plugin</artifactId>
<version>1.0.6</version>
<executions>
<execution>
<goals>
<goal>process</goal>
</goals>
<configuration>
<outputDirectory>target/generated-sources/java</outputDirectory>
<processor>com.mysema.query.apt.jpa.JPAAnnotationProcessor</processor>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<version>1.7</version>
<scope>system</scope>
<systemPath>${java.home}/../lib/tools.jar</systemPath>
</dependency>
</dependencies>
</plugin>
alredy嘗試過,但沒有工作 – aditya
添加依賴項並檢查它 –
這不是很好的建議。使用Maven'system'作用域的依賴關係被認爲是不好的做法,這種能力可能在未來版本的Maven中消失。 @EvgeniyDorofeev的建議是要走的路。 –
設置JAVA_HOME環境變量設置爲JDK目錄,Maven使用它來查找JDK –
可以在命令行上運行沒有參數的'javac'? – stdunbar