Netbeans 能否同时处理 32 位和 64 位版本的 Java?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/966601/
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-29 14:36:59  来源:igfitidea点击:

Can Netbeans handle both 32-bit and 64-bit version of Java?

javaidenetbeans64-bitjvm

提问by Frank

I'm running 64-bit version of Vista on my notebook with 4G of RAM, the Ram is maxed out at 1.5G on the 32-bit version of Java. But if I move completely to 64-bit version of Java, the JDIC part won't work, so my question is : if I install both 32 and 64 bit versions of Java, can Netbeans easily switch between the two ? So if I run out of ram at 1.5G, I switch to the 64-bit, but if I need to develop JDIC part, I switch back to the 32-bit, is this possible with Netbeans ?

我在带有 4G RAM 的笔记本电脑上运行 64 位版本的 Vista,而 RAM 在 32 位版本的 Java 上最大为 1.5G。但是如果我完全转向 64 位版本的 Java,JDIC 部分将不起作用,所以我的问题是:如果我同时安装 32 位和 64 位版本的 Java,Netbeans 能否轻松地在两者之间切换?因此,如果我在 1.5G 时用完 ram,我会切换到 64 位,但是如果我需要开发 JDIC 部分,我会切换回 32 位,这可以使用 Netbeans 吗?

========================================================================

================================================== ======================

I've just realized I asked half a question, since which version(32/64 bit) of Netbeans also matters. So my question should be : If I run 64-bit of Neatbeans(assume it's available), and have both versions of Java installed, can I switch between the two Java versions for my projects in Netbeans ?

我刚刚意识到我问了半个问题,因为 Netbeans 的哪个版本(32/64 位)也很重要。所以我的问题应该是:如果我运行 64 位的 Neatbeans(假设它可用),并且安装了两个版本的 Java,我可以在 Netbeans 中为我的项目在两个 Java 版本之间切换吗?

回答by AlexC

NetBeans does work with both 64-bit and 32-bit JVM. Eclipse can only work with 32-bit JVM. I have a script for launching Eclipse with installed 32-bit JVM and NetBeans for the 64-bit or 32-bit JVM.

NetBeans 支持 64 位和 32 位 JVM。Eclipse 只能与 32 位 JVM 一起工作。我有一个脚本,用于启动安装了 32 位 JVM 的 Eclipse 和用于 64 位或 32 位 JVM 的 NetBeans。

回答by Michael Borgwardt

You cannot switch JVMs in a running app. You'll have to restart it, but you should certainly be able to run Netbeans in both JVMs.

您不能在正在运行的应用程序中切换 JVM。您必须重新启动它,但您当然应该能够在两个 JVM 中运行 Netbeans。