Skip to content

coobbi/Jre4android

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

Google play

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

ClassPath

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/

Support and Unsupport

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.

Test and verify the supported jar

Hello world!

This is a simple program that will print 'Hello jdk!!!' to the terminal. Hello.jar

HttpServerDemo

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

PrintTriangle

This will print triangle on the terminal PrintTriangle.jar

IpAndHostName

This will print local ip and host name on the terminal IpAndHostName.jar

PrintGoogleHeader

This will print https://www.google.com header on the terminal PrintGoogleHeader.jar

BufferedReaderExample

This will print input value on the terminal BufferedReaderExample.jar

HelloworldSwing.jar

This is a simple swing program. HelloWorldSwing.jar

logisim-evolution

logisim-evolution-3.8.0-all.jar

💼 About the Developer

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

☕ Support the Developer

If you like this project, consider supporting me on PayPal to help keep it going 🙌

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages