Netbeans可以在特定的VM中运行项目吗? [英] Can Netbeans run projects in specific VMs?

查看:75
本文介绍了Netbeans可以在特定的VM中运行项目吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Win7系统上安装了64位Java 7 JDK.

I have a 64-bit Java 7 JDK installed on my Win7 system.

但是,我正在从事的项目之一需要调用一些古老的C DLL(通过JNI),而我只有32位版本.如果我尝试在64位JVM中运行此命令,则会收到错误无法在AMD 64位平台上加载IA 32位.dll"的提示-没什么大不了,只需使用我使用的32位JRE运行它正是由于这个原因才安装的.

One of the projects I'm working on, however, needs to call some ancient C DLLs (via JNI) for which I only have 32-bit versions. If I try to run this in the 64-bit JVM I get the error "Can't load IA 32-bit .dll on a AMD 64-bit platform" - no biggie, just run it using a 32-bit JRE that I have installed for precisely this reason.

但是,我试图迁移到使用NetBeans 7.2进行开发工作(使用TextPad,ant,javac),如果我在IDE中单击运行",NetBeans将选择64位JRE.

However, I'm trying to migrate to using NetBeans 7.2 for development work (from using TextPad, ant, javac) and NetBeans is selecting the 64-bit JRE if I click "Run" from within the IDE.

是否有一种方法告诉NetBeans为此项目选择一个不同的JRE? (我正在从事的其余工作都是纯Java的,因此无需为这些更改JRE.)

Is there a way of telling NetBeans to select a different JRE for this one project? (The rest of the things I'm working on are pure-Java, so no need to change the JRE for those).

推荐答案

在工具-> Java平台下,您需要注册" 32位JDK/JRE.

Under Tools -> Java Platforms you need to "register" the 32bit JDK/JRE.

然后在项目属性的库"下选择该JDK.

Then in your Project Properties under "Libraries" select that JDK.

这篇关于Netbeans可以在特定的VM中运行项目吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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