forked from Hax4us/java
-
Notifications
You must be signed in to change notification settings - Fork 91
Open
Description
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 :-)
Fantailed and Remon98
Metadata
Metadata
Assignees
Labels
No labels