in this part of POM.xml, i am getting errorの.jarツールをJDKでビルドまたは持って実行する必要があります。あなたはのpom.xmlにエラー下回っ取得
あなたはクラスパス上の.jarをJDKでビルドやツールを持って実行する必要が...
**私はすでに
で**また、追加のtools.jar設定がパスを構築JREパス
としてJDKを追加しようとしている - 外部libに
しかし、誰でした運...
in this part of POM.xml, i am getting errorの.jarツールをJDKでビルドまたは持って実行する必要があります。あなたはのpom.xmlにエラー下回っ取得
あなたはクラスパス上の.jarをJDKでビルドやツールを持って実行する必要が...
**私はすでに
で**また、追加のtools.jar設定がパスを構築JREパス
としてJDKを追加しようとしている - 外部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環境変数: ではなく
C:\Program Files\Java\jre7
ソリューション2の
C:\Program Files\Java\jdk1.x.x_xx"
またはC:\Program Files\Java\jdk1.x.x_xx\jre
をお試しください、Mavenはそれを使ってJDK –を見つけることができますコマンドラインで引数なしで 'javac'を実行しますか? – stdunbar