Closed OmarAmer12 closed 5 years ago
Okay, the first error comes up when downloading tarball. Try to open 'installjava' script using nano or any other editor you want and remove '-q' from line 30, then save it, run, and send a screenshot, so we can find out where wget fails.
Hovewer, the error might be just caused because of wget was not properly installed, so before doing all the things I described above, try to simply uninstall wget by running 'pkg uninstall wget', then sync repositories using 'apt update' and install wget once again - 'pkg install wget'.
I typed "nano installjava" but I get only black screen there is no something written
And I did "pkg uninstall wget" and "pkg install wget" before it
Hello? Can you help me please??
Can I install it manually ? And how??
![Uploading Screenshot_٢٠١٩٠٦١٠-٢٢١٤٣٢.jpg…]()
sir I did what u said and removed -q now this is the screenshot
This is what appears to me :
nano installjava $ bash installjava
This script will install Java in Termux. Libraries compiled by Hax4us, script written by Hax4us and MasterDevX.
[*] Downloading JDK-8 (~70Mb) for arm... --2019-06-10 22:14:07-- https://github.com/Hax4us/java/releases/download/v8/jdk8_arm.tar.gz Resolving github.com... 140.82.118.4 Connecting to github.com|140.82.118.4|:443... connected. HTTP request sent, awaiting response... 404 Not Found 2019-06-10 22:14:08 ERROR 404: Not Found.
[] Moving JDK to system... mv: cannot stat 'jdk8_arm.tar.gz': No such file or directory [] Extracting JDK... tar: jdk8_arm.tar.gz: Cannot open: No such file or directory tar: Error is not recoverable: exiting now [] Moving Java wrapper scripts to bin... mv: cannot stat 'bin/': No such file or directory [*] Cleaning up temporary files...
Java was successfully installed!
$
Hmm, looks like download URL changed a little bit, I'll try to fix it now. P.S. Sorry for late reply, I was busy these days, so I was away from GitHub..
Just pushed two new commits, which should fix the issue. Try installing now.
I think need new comit, url https://github.com/Hax4us/java/releases/download/v8/jdk8_arm.tar.gz is not found
real path is https://github.com/Hax4us/java/releases/download/v8-151/jdk8_arm.tar.gz
i hope,you can fix "installjava"
Cheers,
Already fixed, try it out.
Ok the problem is solved but this new problem apears to me:
This script will install Java in Termux. Libraries compiled by Hax4us, script written by Hax4us and MasterDevX.
[] Downloading JDK-8 (~70Mb) for arm... [] Moving JDK to system... [] Extracting JDK... [] Moving Java wrapper scripts to bin... [*] Cleaning up temporary files...
Java was successfully installed!
$ java Segmentation fault $
Please don't be late in the answer and thank you.
My phone is Galaxy J7 prime 2 , and Android : 7.1.1
And my phone is rooted
Redirecting to https://github.com/MasterDevX/Termux-Java/issues/2
When I type wget https://raw.githubusercontent.com/MasterDevX/java/master/installjava && bash installjava
Then
Java
This happens:
This script will install Java in Termux. Libraries compiled by Hax4us, script written by Hax4us and MasterDevX.
[] Downloading JDK-8 (~70Mb) for arm... [] Moving JDK to system... mv: can't rename 'jdk8_arm.tar.gz': No such file or directory [] Extracting JDK... tar: can't open 'jdk8_arm.tar.gz': No such file or directory [] Moving Java wrapper scripts to bin... mv: can't rename 'bin/': No such file or directory [] Cleaning up temporary files...
Java was successfully installed!
$ java No command 'java' found, did you mean: Command 'cava' from package 'cava' $
please help me