Build Error : 

target Java: core (out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes)

host Java: dx (out/host/common/obj/JAVA_LIBRARIES/dx_intermediates/classes)

/bin/bash: jar: command not found

make: *** [out/host/common/obj/JAVA_LIBRARIES/jsr305lib_intermediates/javalib.jar] Error 127

make: *** Waiting for unfinished jobs....

Note: Some input files use unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.

/bin/bash: jar: command not found

make: *** [out/host/common/obj/JAVA_LIBRARIES/antlr-runtime_intermediates/javalib.jar] Error 127

Note: Some input files use unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.

/bin/bash: jar: command not found

make: *** [out/host/common/obj/JAVA_LIBRARIES/dx_intermediates/javalib.jar] Error 127

Note: Some input files use or override a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

Note: Some input files use unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.

/bin/bash: jar: command not found

make: *** [out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes-full-debug.jar] Error 127


Fixed : 
build system에서 "jar" command를 찾을 수 없어서 발생 
# which jar

# sudo update-alternatives --install /usr/bin/jar jar /usr/lib/jvm/jdk1.6.0_34/bin/jar 1
# which jar
/usr/bin/jar





Posted by eoseontaek