如何指定在Netbeans中使用哪个JRE? [英] How to specify which JRE to use in Netbeans?

查看:290
本文介绍了如何指定在Netbeans中使用哪个JRE?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的系统中有两个JRE.一个是32位,另一个是64位.在Eclipse中,我可以配置两者,并选择在运行应用程序时使用哪个.

I have two JRE in my system. One is 32-bit and the other one 64-bit. In Eclipse I can configure both and choose which one to use when running my application.

我想知道我是否可以在Netbeans中做同样的事情.我尝试转到项目属性,库,然后尝试通过管理平台在此处配置新的JRE,但是它不接受我的JRE目录.我应该如何进行?

I'm wondering if I can do the same thing in Netbeans. I've tried to go to Project Properties, Libraries and then tried to configure a new JRE there, through Manage Platforms, but it doesn't accept the directory of my JRE. How should I proceed?

请注意,我在说的是JRE,而不是JDK;)

Be aware that I'm talking about JRE, and not JDK ;)

我设法通过下载新的32位JDK并选择其目录来使其工作.我仍然无法使其接受JRE目录.

I managed to make it work by downloading a new 32-bit JDK and selecting its directory. I still couldn't make it accept a JRE directory.

推荐答案

是否可以仅使用JRE来运行Netbeans取决于您下载的软件包.在 Netbeans 7 中,只有C/C ++和PHP捆绑包可以与JRE一起运行.

Whether or not you can run Netbeans with just the JRE depends on what bundle you have downloaded. In Netbeans 7 only C/C++ and PHP bundles can be run with the JRE.

在此JRE框架下,旧版本的Netbeans包含更多语言,但是原理是相同的.

Older versions of Netbeans include more languages under this JRE umbrella, but the principle is the same.

JDK包含用于调试和编译代码的JRE plus 工具,因此,如果您除了运行IDE之外还进行其他基于Java的操作,netbeans取决于JDK.

The JDK contains the JRE plus tools to debug and compile code, so if you're doing anything Java based apart from just running the IDE, netbeans depends on the JDK.

这篇关于如何指定在Netbeans中使用哪个JRE?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆