cross-compile openjdk 11u to Android device

Wow Lucky bikchurin2001 at
Tue Jul 7 10:55:45 UTC 2020

I am trying to cross-compile openjdk 11u to aarch64. I am using following
*bash configure --openjdk-target=aarch64-linux-android21
--disable-warnings-as-errors CC=aarch64-linux-android21-clang

but i am getting output errors below:
*checking for aarch64-linux-android21-clang...
*checking resolved symbolic links for CC... no symlink*
*configure: The C compiler (located as
does not seem to be the required gcc compiler.*
*configure: The result from running with --version was: ""*
*configure: error: A gcc compiler is required. Try setting
*configure exiting with result code 1*
(all text in file)

But if i use
The output is
*Android (6454773 based on r365631c2) clang version 9.0.8
98c855489587874b2a325e7a516b99d838599c6f) (based on LLVM 9.0.8svn)*
*Target: aarch64-unknown-linux-android21*
*Thread model: posix*
*InstalledDir: /mnt/c/Users/ACER/downloads/NDK/build/tools/toolchain/bin*

I don't know how to fix this error.

More information about the discuss mailing list