Coder Social home page Coder Social logo

Comments (47)

kcubeterm avatar kcubeterm commented on July 23, 2024 43

Hey all before running java run proot -0
It will work

from termux-java.

kcubeterm avatar kcubeterm commented on July 23, 2024 20

See in android 9 it works
Screenshot_2019-11-01-11-42-37-866_com termux
First ,when I run just java
It didn't run
But when I execute proot -0 here "0"is zero okkk
Then I execute keytool it's worked

from termux-java.

Dzuchun avatar Dzuchun commented on July 23, 2024 11

Hey all before running java run proot -0
It will work

@kcubeterm
nope, typing "java" in any case causes bad system call:
20191101_064232
it even won't display jar argument syntax as shown above.

from termux-java.

sudoalx avatar sudoalx commented on July 23, 2024 6

It works with proot -0 it was as simple as that 😅

from termux-java.

Dzuchun avatar Dzuchun commented on July 23, 2024 2

For android 9 works, confirm.
Thanks everyone!

from termux-java.

emiliehc avatar emiliehc commented on July 23, 2024 1

Same problem for me also, using android pie with lineage os 16

from termux-java.

MasterDevX avatar MasterDevX commented on July 23, 2024

What Android version are you running?

from termux-java.

frhnfrq avatar frhnfrq commented on July 23, 2024

Android 9. OnePlus 6 (A6000)

from termux-java.

MasterDevX avatar MasterDevX commented on July 23, 2024

Yeah, there are some problems like this with Android Pie.

from termux-java.

frhnfrq avatar frhnfrq commented on July 23, 2024

Oh! Is there any way to fix it?

from termux-java.

MasterDevX avatar MasterDevX commented on July 23, 2024

Not sure. If you have PC you can try to get LogCat using ADB ad upload it here.

from termux-java.

 avatar commented on July 23, 2024

I have the same problem with Android 8.0.0 and i can upload logcat if useful.

from termux-java.

MasterDevX avatar MasterDevX commented on July 23, 2024

I have the same problem with Android 8.0.0 and i can upload logcat if useful.

Yep, it will be good.
Looks like Android 8+ problem..

from termux-java.

 avatar commented on July 23, 2024

I have the same problem with Android 8.0.0 and i can upload logcat if useful.

Yep, it will be good.
Looks like Android 8+ problem..

I've read all the logcat of termux PID while sending javac command but i haven't found nothing useful.
There was just something about WindowManager and OpenGLRenderer.

from termux-java.

reekystive avatar reekystive commented on July 23, 2024

Android Pie, Bad system call, too.

from termux-java.

Mantisimo avatar Mantisimo commented on July 23, 2024

Getting the same android version 9

from termux-java.

GoogleSites avatar GoogleSites commented on July 23, 2024

Same here. Galaxy A20, Android 9

from termux-java.

SudhitChauhan avatar SudhitChauhan commented on July 23, 2024

Same problem ! Redmi 5A, Android 8.1

from termux-java.

TheMatheusDev avatar TheMatheusDev commented on July 23, 2024

Last month I was able to use normally on Android 9, so I changed my ROM and now I get this error. The new ROM is Android Pie too.

from termux-java.

MasterDevX avatar MasterDevX commented on July 23, 2024

@TheusKhan Have you changed from stock to custom, or...?

from termux-java.

TheMatheusDev avatar TheMatheusDev commented on July 23, 2024

I changed from custom ROM to another custom ROM. My device is Redmi 4X, aka Santoni.
Was working fine on POSP with 4.9 linux kernel.
But now doesn't work on Havoc OS with 3.18 Linux kernel. Both are Android Pie AOSP ROMs rooted with Magisk 19.3.

from termux-java.

phil2sat avatar phil2sat commented on July 23, 2024

Install tsu thenn as root it works

from termux-java.

Flamexxx avatar Flamexxx commented on July 23, 2024

the same probleme here

from termux-java.

sudoalx avatar sudoalx commented on July 23, 2024

Same problem on Android 9 3.18 Kernel

from termux-java.

MasterDevX avatar MasterDevX commented on July 23, 2024

Lol, so many people facing this and still no solution. Marking as "won't fix" for now..

from termux-java.

Dzuchun avatar Dzuchun commented on July 23, 2024

same problem

from termux-java.

rickasheye avatar rickasheye commented on July 23, 2024

im still getting the same problem on android 10 @MasterDevX

from termux-java.

 avatar commented on July 23, 2024

@kcubeterm Thanks a lot, running proot -0 before calling Java, fixed the issue! I think that a slight modification to the installation script can make this automatic @MasterDevX

from termux-java.

MasterDevX avatar MasterDevX commented on July 23, 2024

Big thanks to the @kcubeterm for the solution, I think we can finally close this 👍

from termux-java.

MasterDevX avatar MasterDevX commented on July 23, 2024

I think that a slight modification to the installation script can make this automatic

Don't know if it is a good idea, cuz some users who don't want to be in a PRoot environment will be forced to use it.

from termux-java.

Frankystar777 avatar Frankystar777 commented on July 23, 2024

Damn I got an error message with command : proot -0

from termux-java.

GuzioMG avatar GuzioMG commented on July 23, 2024

Reports success from Android 10 on Samsung Galaxy S10e! Gotta install Minecraft Server now, as my VM can't handle it...

from termux-java.

aldin99 avatar aldin99 commented on July 23, 2024

See in android 9 it works
Screenshot_2019-11-01-11-42-37-866_com termux
First ,when I run just java
It didn't run
But when I execute proot -0 here "0"is zero okkk
Then I execute keytool it's worked

Thank you its works

from termux-java.

bucketsort avatar bucketsort commented on July 23, 2024

If you run javac in termux using strace you'll see what's wrong.

According to this link: termux/termux-packages#420

the error is because you compile against a libc that doesn't know about the restrictions on syscalls in newer Android versions.

In our case this is the syscall (strace):

set_robust_list(0x74b24e50e0, 24) = 501207683296
--- SIGSYS {si_signo=SIGSYS, si_code=SYS_SECCOMP, si_call_addr=0x74b249c790, si_syscall=__NR_set_robust_list, si_arch=AUDIT_ARCH_AARCH64} --- +++ killed by SIGSYS +++
Bad system call

from termux-java.

TITANHACKY avatar TITANHACKY commented on July 23, 2024

We can't use java without proot -0 ?

from termux-java.

VergeDX avatar VergeDX commented on July 23, 2024

Yes, exec tsu and java works.

from termux-java.

TITANHACKY avatar TITANHACKY commented on July 23, 2024

Yes, exec tsu and java works.

Yes when we use tsu it will work but most of the users only have unrooted android including me

from termux-java.

 avatar commented on July 23, 2024

Damn I got an error message with command : proot -0

First install proot boss :-)

from termux-java.

 avatar commented on July 23, 2024

Write in termux termux-chroot

from termux-java.

Enforc3rr avatar Enforc3rr commented on July 23, 2024

XDD incase anyone thinks -proot 0 is tiresome to type everytime , i suggest you to use sudo instead

from termux-java.

suhui8 avatar suhui8 commented on July 23, 2024

like this : pkg install proot
1
2

from termux-java.

suhui8 avatar suhui8 commented on July 23, 2024

3

If you are running SpringBoot, may be specify a tmp folder,
java -Djava.io.tmpdir=/data/data/com.termux/files/home/tmpdir jar xxxxyourJava.jar

from termux-java.

kcubeterm avatar kcubeterm commented on July 23, 2024

@DaiMengMei try under termux-chroot

from termux-java.

ilixindri avatar ilixindri commented on July 23, 2024

Screenshot_20210510-010247_Termux
Not work
Screenshot_20210510-010504_Termux

from termux-java.

 avatar commented on July 23, 2024

install proot
launch with fake root

from termux-java.

pavan3b8 avatar pavan3b8 commented on July 23, 2024

I think that a slight modification to the installation script can make this automatic

Don't know if it is a good idea, cuz some users who don't want to be in a PRoot environment will be forced to use it.

How to remove proot

from termux-java.

GuzioMG avatar GuzioMG commented on July 23, 2024

I think that a slight modification to the installation script can make this automatic

Don't know if it is a good idea, cuz some users who don't want to be in a PRoot environment will be forced to use it.

How to remove proot

WDYM "remove"? Like... Uninstall the package? Just like any other package - pkg remove proot or pkg uninstall proot (I actually don't remember which one was it).

from termux-java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.