Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install JRE while deploying a Java Swing application?

I'm new to Java Swing & I'm a bit stumped. The application I'm developing will be installed on systems that have not installed JRE. Is there any way to pack JRE inside the Java Swing application and create an EXE file which installs JRE and the application?

like image 393
Abilash Avatar asked Sep 11 '26 15:09

Abilash


1 Answers

Use deployJava.js to ensure a suitable minimum JRE is installed on the computer of the end user. Then use Java Web Start to install and launch the application itself.

Both of those are:

  1. Supplied by Oracle for deployment of rich client apps.
  2. Designed to work on Windows, OS X & *nix.
like image 120
Andrew Thompson Avatar answered Sep 13 '26 05:09

Andrew Thompson



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!