Should Java be installed to run a Java application?

when you write an application in java, people have to install this java in order to use it correctly?

Sorry if this is a stupid question.

+4
source share
3 answers

The trarot is right; Your audience needs a Java Runtime to use your java.

However, they do not need this Java, or, in other words, they do not need to use the Sun (now Oracle) JRE. They can also use OpenJDK or any other free java implementation .

Not a stupid question.


Side note. As Glenn Nelson stated, there are Ahead-Of-Time compilers, and if you want to go down this route, go ahead. But I strongly warned you to jump into this boat, especially if you are just starting out in Java. AOT Java compilers have their own set of problems.

+2
source

Yes, a Java Runtime is required to run a Java program:

http://java.com/en/download/

+1
source

There are also executable installers that can bind Java or load it during installation. You can also use Java Web Start.

0
source

Source: https://habr.com/ru/post/1336622/


All Articles