android-js / androidjs

Platform to build android app using node js
MIT License
463 stars 109 forks source link

androidjs build: "java.io.IOException: No such file or directory" on termux aarch64 #115

Open PawelSuwinski opened 4 years ago

PawelSuwinski commented 4 years ago

Hi

I have simple app, works fine in dev mode ($ node main.js) but build attempt ends with exception:

$ strace -o ../strace.log androidjs build 
(...)
building ...3...
java.io.IOException: No such file or directory`

$ androidjs --version
2.1.8

$ java -version
java version "1.8.0_152"
Java(TM) SE Runtime Environment (build 1.8.0_152-b16)
Java HotSpot(TM) 64-Bit Server VM (build 25.152-b16, mixed mode)

$ grep -B 2 exec $(which java)
# proot hack
# @see https://github.com/MasterDevX/Termux-Java/issues/9
exec proot  $JAVA_HOME/bin/java "$@" 

$ echo $JAVA_HOME
/data/data/com.termux/files/usr/share/jdk8

$ pkg list-installerd | grep termux
termux-am/stable,now 0.3 all [installed]
termux-api/stable,now 0.50 aarch64 [installed]
termux-auth/stable,now 1.3 aarch64 [installed,automatic]
termux-exec/stable,now 0.5 aarch64 [installed]
termux-keyring/now 1.2 all [installed,upgradable to: 1.3]
termux-licenses/stable,now 1.0 all [installed]
termux-tools/stable,now 0.79 all [installed]

$ termux-info
Android version: 8.1.0
Linux localhost 3.10.108-g5285e19 #1 SMP PREEMPT Fri Oct 26 18:55:56 CEST 2018 aarch64 Android
Device model: HTC One M8s

Strace log: androidjs_build-termux_aarch64_strace.log.gz

Any hints? I will appreciate any help. Maybe it is something with Termux-Java "proot hack" (?).

-- regards Pawel Suwinski

Chhekur commented 4 years ago

Hey, we haven't tested it on termux. May be something is wrong because of termux

Join our slack channel for faster response https://join.slack.com/t/androidjs/shared_invite/zt-e0y0u6z6-hZdwdv1zN9AMbDKxhp7NcQ

Feel free to ask in case of any problem ; )