是否必须安装Java才能运行Java应用程序?

时间:2022-08-27 06:58:43

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

当你在java中编写应用程序时,人们需要安装这个java来使用它吗?

Sorry if this is a dumb question.

对不起,如果这是一个愚蠢的问题。

3 个解决方案

#1


2  

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

Traroth是正确的;您的受众需要Java Runtime才能使用您的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.

但是,它们不一定需要Java,换句话说,它们不需要使用Sun(现在的Oracle)的JRE。他们也可以使用OpenJDK或任何其他免费的Java实现。

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.

旁注:正如Glenn Nelson所说,有一些Ahead-Of-Time编译器,如果你想沿着那条路走下去,那就继续吧。但是我强烈警告不要跳进那条船,特别是如果你刚刚开始使用Java。 AOT Java编译器带有一系列问题。

#2


1  

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

是的,您需要Java Runtime来运行java程序:

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

#3


0  

There are also executable installers which may bundle Java or download it during the installation. You may also use "Java Web Start".

还有可执行的安装程序,可以在安装期间捆绑Java或下载它。您也可以使用“Java Web Start”。

#1


2  

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

Traroth是正确的;您的受众需要Java Runtime才能使用您的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.

但是,它们不一定需要Java,换句话说,它们不需要使用Sun(现在的Oracle)的JRE。他们也可以使用OpenJDK或任何其他免费的Java实现。

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.

旁注:正如Glenn Nelson所说,有一些Ahead-Of-Time编译器,如果你想沿着那条路走下去,那就继续吧。但是我强烈警告不要跳进那条船,特别是如果你刚刚开始使用Java。 AOT Java编译器带有一系列问题。

#2


1  

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

是的,您需要Java Runtime来运行java程序:

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

#3


0  

There are also executable installers which may bundle Java or download it during the installation. You may also use "Java Web Start".

还有可执行的安装程序,可以在安装期间捆绑Java或下载它。您也可以使用“Java Web Start”。