Probleme with JAVA_HOME in maven for android using Eclipse -
i new in maven utilisation, want use generate apk of android appication. when launching "compile" , others recieve error message :
[error] failed execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project android.app: compilation failure [error] unable locate javac compiler in: [error] c:\program files\java\jre7\..\lib\tools.jar [error] please ensure using jdk 1.4 or above , [error] not jre (the com.sun.tools.javac.main class required). [error] in cases can change location of java [error] installation setting java_home environment variable.
so set java_home jdk :
but still have same problem after restart computer.
do have idea why ?
edit----
i don't know if change using eclipse launch maven build
i'm supposing use eclipse, or not? eclipse:
click on debug->debug configurations.... click on maven build, select 1 u use. have tab called jre. click on it. there place can choice.
normally maven takes jre/jdk set default in eclipse, if didn't change default jre/jdk nyour workspace that.
Comments
Post a Comment