MasterDevX / Termux-Java

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

Simply "Segmentation fault" #14

Open TudbuT opened 4 years ago

TudbuT commented 4 years ago

I know, this issue exists.

I have a Segmentation error... Like I think everyone on ARM. Also my screenshot does not show the same type of Segmentation error as the other ones: Screenshot_20191109-211521_Termux

So, it doesn't say "[xx]x Segmentation fault XXX", it only says "Segmentation fault", which (I think) seems to be less problematic than the error one... I hope it is.

Thanks

TudbuT commented 4 years ago

Oops wrong button

TudbuT commented 4 years ago

Also I wanted to say that I really respect your work!

EduApps-CDG commented 4 years ago

Same here, Android 9

EduApps-CDG commented 4 years ago

Hello! I solved the problem by installing Ubuntu and then:

apt get install openjdk-11-jre openjdk-11-jdk
4V4loon commented 4 years ago

Hi, I was having the same problem, after installing the sudo command, I think I solved the problem. sudo file and installation description : https://gist.github.com/GabrielMMelo/0e146f32d73978bf0d0a06786bcbc96c

Thanks!

4V4loon commented 4 years ago

I guess it is not done without root.

EduApps-CDG commented 4 years ago

Yes, i think i will root again

comicsansgreenki commented 4 years ago

Oh, so until there's a fix on this instant segfault I have to type sudo in with each and every program involving java?

At least lineageos has my back for root capabilities...

TadavomnisT commented 3 years ago

I had the same condition, fixed it by following instructions:

$ pkg install wget -y $ wget https://archive.org/download/openjdk-9-jre-headless_9.2017.8.20-1_x86_64/openjdk-9-jdk-headless_9.2017.8.20-1_arm.deb $ wget https://archive.org/download/openjdk-9-jre-headless_9.2017.8.20-1_x86_64/openjdk-9-jre-headless_9.2017.8.20-1_arm.deb $ apt-get install -y ./openjdk-9-jre-headless_9.2017.8.20-1_arm.deb $ apt-get install -y ./openjdk-9-jdk-headless_9.2017.8.20-1_arm.deb

IDK for sure , but looks like there was some sort of problem with jdk/jre binary installation and some data happened to be missing. Hope it helps

Chickn-man commented 2 years ago

@TadavomnisT But can i get openjdk-8 this way

TadavomnisT commented 2 years ago

@Chickn-man Honestly, no clue... I think you should look for openjdk 8 debian headless versions, though not sure if it would be easy to find suitable binary. maybe MasterDevX can help you.

Merith-TK commented 2 years ago

Have this issue with my device as well! Screenshot_20220102-123150_Termux.jpg

Will try the Java 9 think first but still!

Merith-TK commented 2 years ago

Screenshot_20220102-124109_Termux.jpg