Develop/etc
[Ant] Unable to find a javac compiler 에러
연로그
2021. 3. 5. 12:56
반응형
에러: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "C:\Java\jre1.8"
ant build를 하는데 위와 같은 오류가 떴다.
build를 위해 jdk를 찾아야 하는데 jre로 세팅되어 있는 것 같다.
Windows - Preferences - Ant - Runtime - ClassPath에서 Ant를 선택한 뒤, Add External JARs를 클릭한다.
본인 컴퓨터의 jdk 경로/lib/tools.jar를 추가하면 된다.
참고
반응형