본문 바로가기

Programming!

Spring tools suite + QueryDSL

sts 에서 querydsl을 pom.xml에 올릴면 아래와 같은 문제가 발생한다.


You need to run build with JDK or have tools.jar on the classpath.If this occures during eclipse build make sure you run eclipse under JDK as well (com.mysema.maven:apt-maven-plugin:1.0.6:process:default:generate-sources)    pom.xml    /spring-data    line 228    Maven Build Problem


삽질..


여튼 첫번째로 설치된 JRE를 제거해준다.  \windows\system32\java*.exe

( uninstall jre or remove \windows\system32\java*.exe )


이후, sts.ini 에 다음을 추가해준다.

-vm
%JAVA_HOME\bin\javaw.exe


mvn eclipse:eclipse 후, project clean..




그외 자세한 설명은 다음 주소를 확인한다.

https://thesolidsnake.wordpress.com/2012/11/10/men-setup-querydsl-di-eclipse/