2017-10-06 54 views

回答

0

解決方案1: 嘗試C:\Program Files\Java\jdk1.x.x_xx"C:\Program Files\Java\jdk1.x.x_xx\jre代替C:\Program Files\Java\jre7

解決方案2: Editeclipse.ini文件

-vm 
C:\jdk1.7\bin\javaw.exe 
+0

已經嘗試編輯蝕 燕麗 -vm C: -vm C:\ jdk1.7 \ BIN \ javaw.exe的 但沒有運氣 – aditya

+0

你用eclipse? –

+0

是@RajaRamachandran我正在使用eclipse – aditya

0
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> 
+0

alredy嘗試過,但沒有工作 – aditya

+0

添加依賴項並檢查它 –

+0

這不是很好的建議。使用Maven'system'作用域的依賴關係被認爲是不好的做法,這種能力可能在未來版本的Maven中消失。 @EvgeniyDorofeev的建議是要走的路。 –

相關問題