Reputation: 2950
I have a 64-bit Java 7 JDK installed on my Win7 system.
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.
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.
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).
Upvotes: 2
Views: 930
Reputation:
Under Tools -> Java Platforms you need to "register" the 32bit JDK/JRE.
Then in your Project Properties under "Libraries" select that JDK.
Upvotes: 4