bill - thanks for the reply. Excellent - yes they are there. It seems the
path to libj.so is hard-coded and it's not accepting the -lib parameter

$ ./jconsole
Load library /data/app/com.jsoftware.j.android-9/lib/x86/libj.so failed.

$ /data/data/com.termux/files/home/assets/libexec/android-libs/x86/jconsole
-lib
/data/data/com.termux/files/home/assets/libexec/android-libs/x86/libj.so
Load library /data/app/com.jsoftware.j.android-9/lib/x86/libj.so failed.


strace shows this:



fstatat64(AT_FDCWD, "/data/data/com.jsoftware.j.android/lib/libj.so",
0xfff0bff0, 0) = -1 ENOENT (No such file or directory)
fstatat64(AT_FDCWD, "/data/app/com.jsoftware.j.android/lib/x86/libj.so",
0xfff0bff0, 0) = -1 ENOENT (No such file or directory)
fstatat64(AT_FDCWD, "/data/app/com.jsoftware.j.android-1/lib/x86/libj.so",
0xfff0bff0, 0) = -1 ENOENT (No such file or directory)
fstatat64(AT_FDCWD, "/data/app/com.jsoftware.j.android-2/lib/x86/libj.so",
0xfff0bff0, 0) = -1 ENOENT (No such file or directory)
fstatat64(AT_FDCWD, "/data/app/com.jsoftware.j.android-3/lib/x86/libj.so",
0xfff0bff0, 0) = -1 ENOENT (No such file or directory)
fstatat64(AT_FDCWD, "/data/app/com.jsoftware.j.android-4/lib/x86/libj.so",
0xfff0bff0, 0) = -1 ENOENT (No such file or directory)
fstatat64(AT_FDCWD, "/data/app/com.jsoftware.j.android-5/lib/x86/libj.so",
0xfff0bff0, 0) = -1 ENOENT (No such file or directory)
fstatat64(AT_FDCWD, "/data/app/com.jsoftware.j.android-6/lib/x86/libj.so",
0xfff0bff0, 0) = -1 ENOENT (No such file or directory)
fstatat64(AT_FDCWD, "/data/app/com.jsoftware.j.android-7/lib/x86/libj.so",
0xfff0bff0, 0) = -1 ENOENT (No such file or directory)
fstatat64(AT_FDCWD, "/data/app/com.jsoftware.j.android-8/lib/x86/libj.so",
0xfff0bff0, 0) = -1 ENOENT (No such file or directory)
fstatat64(AT_FDCWD, "/data/app/com.jsoftware.j.android-9/lib/x86/libj.so",
0xfff0bff0, 0) = -1 ENOENT (No such file or directory)
fstatat64(AT_FDCWD, "/sdcard/Android/data", {st_mode=S_IFDIR|0771,
st_size=4096, ...}, 0) = 0
fchmodat(AT_FDCWD, "/data/data/com.termux/files/usr/tmp", 0777) = 0

Which seems to show it hitting this:

https://github.com/jsoftware/jsource/blob/eebfb7ba5b3149d5a1ae8dee6221da076af4ea3f/jsrc/jeload.c#L141


On Mon, Oct 9, 2017 at 10:44 AM, bill lam <[email protected]> wrote:

> I am unable to test jandroid for some time, so I am not so sure, but iirc
> jconsole for all architectures are bundled inside APK. Not inside libs
> folder but inside a tar file under the asset folder.  Try decompress the
> tar file, there are 3 or 4 jconsole there.
>
> On Oct 9, 2017 10:21 PM, "Joe Bogner" <[email protected]> wrote:
>
> > I have a new HP G5 chromebook that can install apps from the Play Store.
> It
> > won't allow side-loading unless developer mode is turned from recovery
> mode
> > - which causes a warning every time the device is booted.
> >
> > I spent a few minutes trying to compile from termux and failed.
> >
> > I looked into extracting the content from the APK but noticed jconsole
> was
> > missing. I seem to recall early versions of the jandroid also included a
> > jconsole. It looks like the current apk has the libj.so but no jconsole
> >
> > It has a Intel Celeron N3060 x86_64 processor.
> >
> > Are there any relatively simple options for getting jconsole or jandroid
> to
> > run on this device without going to developer mode?
> >
> > Thanks for any ideas or help
> >
> > Joe
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to