为什么 Java Web Start 不适用于 64 位 Java 环境?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/492248/
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
Why does Java Web Start not work with 64-bit Java environments?
提问by skiphoppy
Java Web Start does not come with 64-bit builds of the JDK. Why is this? What is lacking that keeps it from building and working?
Java Web Start 不附带 64 位版本的 JDK。为什么是这样?是什么让它无法构建和工作?
回答by gustafc
Apparently, there isno reason, since its in JRE6u12. http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4626735
显然,有是没有理由的,因为它在JRE6u12。http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4626735
回答by Tim
Thought you'd might want to know the new update is out: http://java.sun.com/javase/6/webnotes/6u12.html
以为您可能想知道新更新已发布:http: //java.sun.com/javase/6/webnotes/6u12.html
64-Bit Browser Support for Java Plugin and Java Webstart This release supports the New Java Plugin and Java Webstart on AMD64 architecture, on Windows platforms. A Java offline installer (JRE and JDK) is provided. Note, if you use 32-bit and 64-bit browsers interchangeably, you will need to install both 32-bit and 64-bit JREs in order to have Java Plug-In for both browsers.
64 位浏览器支持 Java 插件和 Java Webstart 此版本在 Windows 平台上支持 AMD64 架构上的新 Java 插件和 Java Webstart。提供了 Java 离线安装程序(JRE 和 JDK)。请注意,如果您交替使用 32 位和 64 位浏览器,则需要同时安装 32 位和 64 位 JRE,以便为这两种浏览器安装 Java 插件。
回答by Peter Lawrey
Mostly its a lack of demand. You only really need 64-bit version if you intend to run more than 1200 MB of memory for a web start client. Otherwise it doesn't make much difference.
主要是需求不足。如果您打算为 web start 客户端运行超过 1200 MB 的内存,您只需要 64 位版本。否则差别不大。
Do you know of any examples of a web start application which uses this much memory?
您知道使用这么多内存的 Web 启动应用程序的任何示例吗?
回答by verdy_p
Yes, Javawebstart is not just used to start an app starting from a simple visit of the web via your browser. It is used also for JNLP deployment. And applications that need MORE than just 2-3 GB are really existing. JavaWebStart DID work in the past to start in 64 bit mode. But now javawebstart no longer honors the -D64 command line flag given to the command line parameters of the VM (what is even worse is that we are even limited to about 247MB even if we pass the VM parameters -Xmx (which are no longer honored too !!)
是的,Javawebstart 不仅仅用于通过浏览器从简单的网络访问开始启动应用程序。它也用于 JNLP 部署。需要的不仅仅是 2-3 GB 的应用程序确实存在。JavaWebStart DID 过去工作在 64 位模式下启动。但是现在 javawebstart 不再尊重赋予 VM 命令行参数的 -D64 命令行标志(更糟糕的是,即使我们传递了 VM 参数 -Xmx,我们甚至被限制在大约 247MB也 !!)
Using JNLP applications is now impossible. We need full support of 64 bit mode (and a way to pass VM creation parameters). This is not just a limitation but a severe return to the old ages, with Java VM becoming now extremely slow and swapping.
现在不可能使用 JNLP 应用程序。我们需要完全支持 64 位模式(以及一种传递 VM 创建参数的方法)。这不仅是一种限制,而且是对旧时代的严重回归,Java VM 现在变得极其缓慢且需要交换。
It looks like the Java documentation is wrong now or the support parameter for it has changed. If you ever have installed some tool that provides associations of JNLP with a command, it is possible that it has changed the mapping using an installation of the 32 bit version only of Javawebstart in \windows\syswow64 (which the Java control panel will not detect and not update), when at the same time you have the latest update instaleld in \windows\system32 with a 64-bit javaws laucnher that suports BOTH 32-bit and 64-bit VMs.
看起来 Java 文档现在是错误的,或者它的支持参数已更改。如果您曾经安装过一些提供 JNLP 与命令关联的工具,则它可能已经在 \windows\syswow64 中安装了 32 位版本的 Javawebstart(Java 控制面板不会检测到)而不是更新),同时您在 \windows\system32 中安装了最新的更新,并带有支持 32 位和 64 位 VM 的 64 位 javaws laucnher。
To start java in 64-bit when you have installed both 32-bit and 64-bit versions, you need to check the shortcut created on the descktop or start menu to see that it effectively usees the correct path in \windows\system32 and that the parameter "-J-d64" is present (as well as "-J-Mx=3048m" if you want to increase the maximum size of the VM. Otherwise your VM will be 32 bit and limited to 247 MB !!!
要在安装了 32 位和 64 位版本后以 64 位启动 java,您需要检查在桌面或开始菜单上创建的快捷方式,以查看它是否有效地使用了 \windows\system32 中的正确路径,并且存在参数“-J-d64”(如果要增加 VM 的最大大小,还需要“-J-Mx=3048m”。否则,您的 VM 将是 32 位并限制为 247 MB !!!
I hate those tools that install and change the Java installation somewhere else, without properly registering them in the Windows registry using a supported installation method (not just for their own use, but trying to change associations of file types.
我讨厌那些在其他地方安装和更改 Java 安装的工具,而没有使用支持的安装方法在 Windows 注册表中正确注册它们(不仅供它们自己使用,还试图更改文件类型的关联。
Anyway there's a bug in the Java control panel for Windows if it does not help restoring the file associations, and does not detect that another JRE has been setup (most often oan outdated version !) And the documentation still incorrectly states that we must use the folllowing VM parameter "-D64" when it should be "-d64" (the former is just used to define a property with an unset value in the environment).
无论如何,Windows 的 Java 控制面板中有一个错误,如果它不能帮助恢复文件关联,并且没有检测到另一个 JRE 已被设置(通常是过时的版本!)并且文档仍然错误地指出我们必须使用当它应该是“-d64”时跟随VM参数“-D64”(前者仅用于定义环境中具有未设置值的属性)。

