Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Must Java be installed to run a Java application?

Tags:

java

when you write an app in java, people need to have this java installed to use it right?

Sorry if this is a dumb question.

like image 368
andrewk Avatar asked Jul 25 '26 11:07

andrewk


2 Answers

Traroth is correct; your audience needs the Java Runtime in order to use your java.

However, they don't necessarily need that Java, or in other words, they don't need to be using Sun (now Oracle)'s JRE. They could also be using the OpenJDK, or any of the other free java implementations.

Not a silly question at all.


Side Note: As Glenn Nelson stated, there are Ahead-Of-Time compilers, and if you want to go down that route, go ahead. But I'd strongly warn against jumping into that boat, especially if you are just starting off in Java. AOT Java compilers come with their own set of issues.

like image 81
Zach L Avatar answered Jul 28 '26 01:07

Zach L


Yes, you need the Java Runtime to run a java program:

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

like image 35
Alexis Dufrenoy Avatar answered Jul 28 '26 03:07

Alexis Dufrenoy



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!