0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-13 01:50:33 +00:00
Leonid Pliushch f1cc076b27
ecj: wrappers should unset JAVA_HOME
Otherwise it will work properly if package openjdk-17 is installed.

Issue https://github.com/termux/termux-packages/issues/7233
2021-08-02 20:53:57 +03:00

15 lines
393 B
Bash
Executable File

#!/bin/sh
unset JAVA_HOME
# -proc:none to disable annotation processing.
# -7 for java 1.7 compatibility.
dalvikvm -Xmx256m \
-Xcompiler-option --compiler-filter=speed \
-cp @TERMUX_PREFIX@/share/dex/ecj.jar \
org.eclipse.jdt.internal.compiler.batch.Main \
-proc:none \
-7 \
-cp @TERMUX_PREFIX@/share/java/android-24.jar \
"$@"