Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can programs written in Java not require the JRE?

I had a fresh install and before installing Java was able to run NetBeans and OpenOffice. If these programs were written in Java, how is this possible? I know there exists some .class to .exe converters but I thought these are hacks (not suitable for large applications deployed worldwide). What is the common approach to deploying an application in Java without the JRE? Is there a standard, or most common way?

At first I thought it had to do with Jar files, but from what I red these require an existing Java installation to run.

like image 818
Celeritas Avatar asked Jul 29 '26 13:07

Celeritas


1 Answers

All Java Applications Run on Top of a JRE. Even NetBeans and OpenOffice.

Most of the Deployable Java Applications have a JRE packaged with it. So that you may see it has no JRE but infact there is one with it and the Application will run on top of it.

like image 77
shazin Avatar answered Aug 01 '26 04:08

shazin



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!