Termux-Java icon indicating copy to clipboard operation
Termux-Java copied to clipboard

Cmd java error "Segmentation fault"?

Open Biangkerok32 opened this issue 5 years ago • 18 comments

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

Biangkerok32 avatar Jun 05 '19 01:06 Biangkerok32

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

MasterDevX avatar Jun 05 '19 13:06 MasterDevX

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

Biangkerok32 avatar Jun 14 '19 15:06 Biangkerok32

Not sure, gonna make some research tomorrow.

MasterDevX avatar Jun 17 '19 20:06 MasterDevX

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

OmarAmer12 avatar Jun 18 '19 04:06 OmarAmer12

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

MasterDevX avatar Jun 18 '19 05:06 MasterDevX

Did you find a solution

OmarAmer12 avatar Jun 23 '19 23:06 OmarAmer12

Not yet.

MasterDevX avatar Jun 24 '19 02:06 MasterDevX

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

zalgonoise avatar Aug 09 '19 00:08 zalgonoise

Is today known where the error comes from?

JanisPlayer avatar Oct 30 '19 01:10 JanisPlayer

Same

TudbuT avatar Nov 06 '19 18:11 TudbuT

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.

JanisPlayer avatar Nov 07 '19 03:11 JanisPlayer

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

MasterDevX avatar Nov 07 '19 06:11 MasterDevX

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 avatar Nov 10 '19 09:11 TudbuT

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 [email protected] 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 .

TudbuT avatar Nov 11 '19 05:11 TudbuT

@TudbuT PRoot is not rooting your device..

MasterDevX avatar Nov 11 '19 12:11 MasterDevX

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.

ghost avatar Mar 08 '20 12:03 ghost

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

commander-cb avatar Mar 23 '21 16:03 commander-cb

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

Jaytixx avatar Jun 19 '21 00:06 Jaytixx