简体   繁体   English

NetBeans 7如何标记JDK

[英]Netbeans 7 how to flag jdk

Another Java/Netbeans-Newbie-question: I've started looking into swt, but having some trouble getting it to work in Netbeans. 另一个Java / Netbeans-Newbie问题:我已经开始研究swt,但是在Netbeans中运行它遇到了一些麻烦。 In Eclipse, it works fine though after setting forcing the 32-bit-version. 在Eclipse中,尽管设置了强制32位版本后,它仍然可以正常工作。

Where can I add the flags (ie -d32) to the jdk1.6 settings? 在哪里可以将标志(即-d32)添加到jdk1.6设置中? I figured it would be in MyProject/Properties/Libraries (at least, here I can set 1.6), but I can't flag here. 我认为它将在MyProject / Properties / Libraries中(至少在这里我可以设置1.6),但是我不能在这里标记。 Any hints appreciated! 任何提示表示赞赏!

Thnx in advance, Marcus 提前Thnx,Marcus

You can add the 32-bit JDK 1.6 as one of the Java platforms by opening the "Java Platform Manager" dialog 您可以通过打开“ Java Platform Manager”对话框将32位JDK 1.6添加为Java平台之一。

Tools->Java Platforms->Add Platform...

and pointing it to your 32-bit JDK 1.6 path. 并将其指向您的32位JDK 1.6路径。

Then you can let your project use the platform you added 然后,您可以让您的项目使用添加的平台

(right-click project)->Properties->Libraries->Java Platform

There is also a "Manage Platforms" button on the above dialog in the project properties that will take you directly to the "Java Platform Manager" dialog. 项目属性上方的对话框中还有一个“管理平台”按钮,可直接将您带到“ Java平台管理器”对话框。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM