在编译Java测试用例时的错误提示信息
javac: option -bootclasspath not allowed with target 1.9
Usage: javac <options> <source files>
use -help for a list of possible options
ERROR : FAILED !
java_test/app_test/APP0001-app-Application-Application-helloworld O2 FAILED
=========== case total num : 1 passed num : 0 failed num : 1 timeout num : 0 ================
完整的错误信息如下图
打开终端输出信息中提到的这个文件${OUT_ROOT}/tools/bin/java2dex,然后将其中出现的bootclasspath(仅出现一次)替换成classpath。重新尝试编译Java测试用例,可以看到,编译测试通过了,完整的终端输出信息如下图: