The Java Runtime Environment for android(Jre4Android) used to execute Java programs. It can run jar(include java swing gui) and class files.
This app can open jar and run jar file (Java version is 17) Jre4Android pro support java 21
The effect of this app is the same as the command below:
java -jar xxx.jar
How to distinguish jvm is jre4android environment?
String value = System.getProperty("jre.vendor"); //return Android-Coobbi
The default storage path for files added in the classpath of the settings page is:
Jre4Android:
activity.getCacheDir()/classpath/
Jre4Android Pro:
activity.getFilesDir()/classpath/
activity.getExternalFilesDir(null)/classpath/
Jre4Android can run jar files with main methods, including command mode and gui mode (implemented by java swing). It does not support programs with attached .so files.
This is a simple program that will print 'Hello jdk!!!' to the terminal. Hello.jar
This is a simple http server program, after run the jar, then enter http://localhost:8080 in the browser, you will see the result HttpServerDemo.jar
This will print triangle on the terminal PrintTriangle.jar
This will print local ip and host name on the terminal IpAndHostName.jar
This will print https://www.google.com header on the terminal PrintGoogleHeader.jar
This will print input value on the terminal BufferedReaderExample.jar
This is a simple swing program. HelloWorldSwing.jar
logisim-evolution-3.8.0-all.jar
Hi! I'm the developer of Jre4Android.
Currently, I am open to part-time / freelance opportunities in Android, Java, and Rust development.
📧 Contact: imzine.com@gmail.com
If you like this project, consider supporting me on PayPal to help keep it going 🙌