Coder Social home page Coder Social logo

Android 11 termux java fixer about termux-java HOT 5 OPEN

XopmoH97 avatar XopmoH97 commented on July 23, 2024 2
Android 11 termux java fixer

from termux-java.

Comments (5)

NTT1906 avatar NTT1906 commented on July 23, 2024

this is not fixed :< this is a replacement

from termux-java.

Legit-Das avatar Legit-Das commented on July 23, 2024

Hi! After install java not working, error: "Bad system call" I write this script and fixed this issue:

#!/data/data/com.termux/files/usr/bin/php
<?php
$jdk = '/data/data/com.termux/files/usr/share/jdk8/bin';
$bin = '/data/data/com.termux/files/usr/bin';
$files = opendir($jdk);
while($file = readdir($files)) {
	if(is_file("$jdk/$file") && file_exists("$bin/$file")) {
		$script = file_get_contents("$bin/$file");
		$script = str_replace('exec', 'proot -0', $script);
		file_put_contents("$bin/$file", $script);
		echo "Fixed $file :-)\n";
	}
}

This script writed on php, install php( pkg install php ) and proot ( pkg install proot ) and run this script :-)

How do I run the script? Saved this as java_install.sh and ran, got this:
Screenshot_20211028-093607_Termux

from termux-java.

Chaikew avatar Chaikew commented on July 23, 2024

Thxs, it worked !

from termux-java.

Chaikew avatar Chaikew commented on July 23, 2024

Hi! After install java not working, error: "Bad system call" I write this script and fixed this issue:

#!/data/data/com.termux/files/usr/bin/php
<?php
$jdk = '/data/data/com.termux/files/usr/share/jdk8/bin';
$bin = '/data/data/com.termux/files/usr/bin';
$files = opendir($jdk);
while($file = readdir($files)) {
	if(is_file("$jdk/$file") && file_exists("$bin/$file")) {
		$script = file_get_contents("$bin/$file");
		$script = str_replace('exec', 'proot -0', $script);
		file_put_contents("$bin/$file", $script);
		echo "Fixed $file :-)\n";
	}
}

This script writed on php, install php( pkg install php ) and proot ( pkg install proot ) and run this script :-)

How do I run the script? Saved this as java_install.sh and ran, got this: Screenshot_20211028-093607_Termux

You should run it like that : php ur_file_name.whatever

from termux-java.

Legit-Das avatar Legit-Das commented on July 23, 2024

Hi! After install java not working, error: "Bad system call" I write this script and fixed this issue:

#!/data/data/com.termux/files/usr/bin/php
<?php
$jdk = '/data/data/com.termux/files/usr/share/jdk8/bin';
$bin = '/data/data/com.termux/files/usr/bin';
$files = opendir($jdk);
while($file = readdir($files)) {
	if(is_file("$jdk/$file") && file_exists("$bin/$file")) {
		$script = file_get_contents("$bin/$file");
		$script = str_replace('exec', 'proot -0', $script);
		file_put_contents("$bin/$file", $script);
		echo "Fixed $file :-)\n";
	}
}

This script writed on php, install php( pkg install php ) and proot ( pkg install proot ) and run this script :-)

How do I run the script? Saved this as java_install.sh and ran, got this: Screenshot_20211028-093607_Termux

You should run it like that : php ur_file_name.whatever

Screenshot_20211126-030537_Termux
it shows me this

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.