MasterDevX / Termux-Java

Install Java (Open-JDK-8) in Termux without root!
382 stars 82 forks source link

Cmd java error "Segmentation fault"? #2

Open Biangkerok32 opened 5 years ago

Biangkerok32 commented 5 years ago

My java is error? Im use arm device,install succesful..

But java cmd not work? Im get " xx Segmentasi fault xx " ?

Screenshot_2019-06-05-08-20-46

MasterDevX commented 5 years ago

Maybe this can help you: https://github.com/termux/termux-packages/issues/2129

Biangkerok32 commented 5 years ago

im cant fix this,,, this reference https://github.com/termux/termux-packages/issues/2129 is diference (i thinks) ,,, any idea again ,,,?

MasterDevX commented 5 years ago

Not sure, gonna make some research tomorrow.

OmarAmer12 commented 5 years ago

MasterDevX , Can you tell us how to install it manually?

MasterDevX commented 5 years ago

I think I'll write it in ReadMe soon, but this issue is not an installation related problem, it's execution problem, so..

OmarAmer12 commented 5 years ago

Did you find a solution

MasterDevX commented 5 years ago

Not yet.

zalgonoise commented 5 years ago

Bump.

I have the understanding that, with this same issue, the commands run when called as root (with tsudo prefixed).

I have noticed the Compiler (javac) works - it created Main.class. I might be too noob with Java, but executing a Java file with one method with System.out.println() didn't succeed (cant find the designated Class, regardless how you call it - $ tsudo java Main.java ; $ tsudo java Main ; $ tsudo java Main.class)

Screenshot_20190809-015457_Termux

JanisPlayer commented 4 years ago

Is today known where the error comes from?

TudbuT commented 4 years ago

Same

JanisPlayer commented 4 years ago

Same

I've found that it needs root privileges for this Java. userLand or Ubuntu for XTerm(Need Tunnel) can be an alternative. If you're rootest I can deploy Linux to you.

MasterDevX commented 4 years ago

Can you try to install proot and execute proot -0 before running Java?

TudbuT commented 4 years ago

Can you try to install proot and execute proot -0 before running Java?

Nope didn't work (also the termux/termux-packages#2129 doesn't help at all)...

TudbuT commented 4 years ago

YES!! I spent an hour searching for methodes but found no working one and proot -0 only starts the system terminal and I DON'T WANT TO ROOT MY DEVICE! So yes I tried that boy...

MasterDevX notifications@github.com schrieb am Do., 7. Nov. 2019 07:06:

Can you try to install proot and execute proot -0 before running Java?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/MasterDevX/Termux-Java/issues/2?email_source=notifications&email_token=ALPM5Z4R7EACTRAUNDWBPYTQSOV5DA5CNFSM4HTKUYN2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDKVGUA#issuecomment-550851408, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALPM5Z6Q3WBWSD7ULJ7XK43QSOV5DANCNFSM4HTKUYNQ .

MasterDevX commented 4 years ago

@TudbuT PRoot is not rooting your device..

ghost commented 4 years ago

It is an issue with Android Version! I have seen people using Hax4us' OpenJDK 8 on Android Version 5, I guess, and it worked! On other Android Versions, segmentation fault is common!

Only One Solution is Available - Install Ubuntu(Or Any Other Distribution) Chroot (of course it's PRoot in Termux) and use OpenJDK there.

commander-cb commented 3 years ago

i had the same problem the script throws a seg fault so i installed these instead

openjdk-9-jdk-headless_9.2017.8.20-1_arm.deb openjdk-9-jre-headless_9.2017.8.20-1_arm.deb

must be on line apt-get install -y ./openjdk-9-jdk-headless_9.2017.8.20-1_arm.deb and the other one . i will let you figure out the rest okay

Jaytixx commented 3 years ago

How exactly do I uninstall it please your directives were not clear on how to do that?