Java Silent Fail
Gary Adams
gary.adams at oracle.com
Tue Feb 26 19:50:46 UTC 2019
Don't worry about the "unused DT entry" warnings.
Those are just VERNEED entries in the libraries,
that are not used on android.
I presume the executable and libraries are installed OK,
since the warnings below indicate they were found.
I assume the target android api is compatible with the
runtime device or emulator you are using.
Note that the use of java on the command line (adb shell)
is just a smoke test that the build was complete.
The real test of the libraries is when they've been
incorporated in an apk and installed as an app.
On 2/26/19, 2:27 PM, Sparse Way wrote:
> Hello,
>
> ./java -Djava.home=/data/app/jre -version
>
> Running this on android armv7a doesn't produce any output, the arguments are ignored as replacing them with invalid ones will make no difference.
> The process exits with value 6, the input stream (process's stdout) is empty.
>
> It would be nice to have debug flag or maybe a debug build variant.
>
> Error stream buffer:
> WARNING: linker: ./java: unused DT entry: type 0x6ffffffe arg 0x3a8
> WARNING: linker: ./java: unused DT entry: type 0x6fffffff arg 0x2
> WARNING: linker: libjli.so: unused DT entry: type 0x6ffffffe arg 0xf00
> WARNING: linker: libjli.so: unused DT entry: type 0x6fffffff arg 0x2
> WARNING: linker: ./java: unused DT entry: type 0x6ffffffe arg 0x3a8
> WARNING: linker: ./java: unused DT entry: type 0x6fffffff arg 0x2
> WARNING: linker: libjli.so: unused DT entry: type 0x6ffffffe arg 0xf00
> WARNING: linker: libjli.so: unused DT entry: type 0x6fffffff arg 0x2
> WARNING: linker: libjvm.so: unused DT entry: type 0x6ffffffe arg 0x472c
> WARNING: linker: libjvm.so: unused DT entry: type 0x6fffffff arg 0x3
>
> Back bash configure produced warning which I ignored:
>
> The following warnings were produced. Repeated here for convenience:
> WARNING: using cross tools not prefixed with host triplet
> WARNING: Unknown autoconf target triplet ABI: "androideabi"
>
> Plus I am not sure if using arm-linux-gnueabihf for arm build is obligatory so didn't use it.
More information about the mobile-dev
mailing list