Comments (5)
this is not fixed :< this is a replacement
from termux-java.
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:
from termux-java.
Thxs, it worked !
from termux-java.
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:
You should run it like that : php ur_file_name.whatever
from termux-java.
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:
You should run it like that :
php ur_file_name.whatever
from termux-java.
Related Issues (20)
- Error: JNA temporary directory '/tmp' does not exist
- Networking failure HOT 3
- It didn't work. HOT 1
- What does that mean ? HOT 2
- Error while installing HOT 2
- Bad system call HOT 1
- line 45: cd: /share: Not a directory
- Java
- "Bad system call" error HOT 1
- [1] 23205 invalid system call java -version HOT 2
- Not working HOT 1
- 6177 Bad system call
- Gradle not working
- libpthread.so.0: cannot open shared object file: No such file or directory HOT 4
- PaperMC Server not working! HOT 1
- Confused HOT 1
- ./gradlew build doesnt work HOT 1
- Segmentation fault
- --------‐-‐-----pkg install wget && wget https://raw.githubusercontent.com/MasterDevX/java/master/installjava && bash installjava--------------------- HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from termux-java.