java 我必须安装 jdk win64 吗?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3242703/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-30 00:57:02  来源:igfitidea点击:

Do i have to install jdk win64?

java64-bitjvmwindows-7-x64jdk1.6

提问by srisar

I have installed windows 7 x64, therefore i have a confusion whether i have to install JDK x64 or JDK x86? please help me, thank you

我已经安装了 windows 7 x64,因此我对是否必须安装 JDK x64 或 JDK x86 感到困惑?请帮助我,谢谢

采纳答案by Jeanne Boyarsky

You should install x64 so Java takes advantage of your 64 bit OS.

您应该安装 x64,以便 Java 利用您的 64 位操作系统。

回答by Jesper

You dont haveto install the x64 version of the JDK if you're running on 64-bit Windows; the x86 (32-bit) version also works on 64-bit Windows. You can even have both the 32-bit and 64-bit version installed at the same time (in different directories, ofcourse).

你不,如果你在64位Windows上运行安装JDK的64位版本; x86(32 位)版本也适用于 64 位 Windows。您甚至可以同时安装 32 位和 64 位版本(当然,在不同的目录中)。

Ofcourse both have advantages and disadvantages:

当然两者各有优缺点:

  • With the 64-bit version you'll take full advantage of the 64-bit capabilities of your CPU and OS
  • If you have a 32-bit webbrowser (which almost all browsers for Windows are currently), you'll want to install 32-bit Java to be able to run applets in the browser
  • 使用 64 位版本,您将充分利用 CPU 和操作系统的 64 位功能
  • 如果你有一个 32 位的网络浏览器(目前几乎所有的 Windows 浏览器都是这样),你需要安装 32 位的 Java 以便能够在浏览器中运行小程序

Also note that there are two versions of Oracles JVM which are tuned differently: the server and the client version. In 64-bit Java, the server JVM is the default, and in the 32-bit version, the client JVM is the default.

另请注意,有两个版本的 Oracles JVM 进行了不同的调整:服务器版本和客户端版本。在 64 位 Java 中,服务器 JVM 是默认值,而在 32 位版本中,客户端 JVM 是默认值。

Obviously, the server JVM is tuned for server programs: programs that are expected to run for a long time and that need the highest possible performance. The server JVM does more aggressive optimizations, but the startup time of programs is longer.

显然,服务器 JVM 是针对服务器程序进行了调整的:这些程序需要运行很长时间并且需要尽可能高的性能。服务器JVM做更积极的优化,但程序的启动时间更长。

The client JVM is tuned for client programs: programs that run for a shorter amount of time and that should start up quickly. The client JVM is tuned for starting programs quickly, at the expense of doing less optimizations.

客户端 JVM 针对客户端程序进行了调整:运行时间较短且应快速启动的程序。客户端 JVM 已针对快速启动程序进行了调整,代价是执行较少的优化。

I have a computation-intensive program that I recently tried on both the 64-bit server JVM and the 32-bit client JVM on the same computer. To my surprise, it runs twice as fast on the 64-bit JVM. Note: This does not mean that any program will run twice as fast on a 64-bit JVM (it's just anecdotal evidence with this particular program).

我最近在同一台计算机上的 64 位服务器 JVM 和 32 位客户端 JVM 上尝试了一个计算密集型程序。令我惊讶的是,它在 64 位 JVM 上的运行速度是原来的两倍。注意:这并不意味着任何程序在 64 位 JVM 上的运行速度都会快两倍(这只是这个特定程序的轶事证据)。

回答by TofuBeer

For the most part 32 bit apps will run fine on 64 bit windows (32 bit drivers are another story).

大多数情况下,32 位应用程序可以在 64 位 Windows 上正常运行(32 位驱动程序是另一回事)。

It is possible that the 32-bit version of Java will run slower than the 64 bit version (possible does not mean it will, just that it could). It is also possible that the 64-bit version will use more memory than the 32 bit version.

有可能 32 位版本的 Java 运行速度比 64 位版本慢(可能并不意味着它会,只是它可以)。也有可能 64 位版本比 32 位版本使用更多的内存。

Personally I use 64-bit version of things when available.

我个人在可用时使用 64 位版本的东西。

回答by Susan

Today, per Oracle at http://www.oracle.com/technetwork/java/javase/downloads/index.html

今天,每个 Oracle 在http://www.oracle.com/technetwork/java/javase/downloads/index.html

Java SE 8u73 includes important security fixes. Oracle strongly recommends that all Java SE 8 users upgrade to this release. Java SE 8u74 is a patch-set update, including all of 8u73 plus additional features (described in the release notes).

Java SE 8u73 包括重要的安全修复。Oracle 强烈建议所有 Java SE 8 用户升级到此版本。Java SE 8u74 是一个补丁集更新,包括所有 8u73 以及附加功能(在发行说明中描述)。

I think this means it would be better to install 88u74. PLEASE let me know if wrong.

我认为这意味着安装 88u74 会更好。如果错了,请告诉我。