1
0
mirror of https://github.com/termux/termux-packages synced 2024-06-14 09:56:39 +00:00
termux-packages/disabled-packages/javac/javac
2015-07-30 10:52:56 -04:00

11 lines
411 B
Bash
Executable File

#!/system/bin/sh
# There needs to be a folder at $ANDROID_DATA/dalvik-cache
export ANDROID_DATA=@TERMUX_PREFIX@/var/android/
mkdir -p $ANDROID_DATA/dalvik-cache
jarpath=@TERMUX_PREFIX@/share/dex/tools.jar
# -proc:none to disable annotation processing/compiling
# -7 for java 1.7 compatibility
dalvikvm -Xmx256m -cp $jarpath com.sun.tools.javac.Main -proc:none -7 -cp @TERMUX_PREFIX@/share/java/android.jar $@