如何在 Java Netbeans 平台模块化项目中设置 VM 选项? [英] How can I set VM options in a Java Netbeans Platform Modular Project?
问题描述
我有一个 Netbeans 平台模块化项目,而不是一个普通的 Java 项目.我想设置 VM 选项以增加内存,但在属性"对话框下,对于模块化 Netbeans 平台项目,无法执行此操作.这花费了我大量的时间,而且我仍然没有找到设置 VM 参数的好方法.
I have a Netbeans Platform modular project, not a regular Java project. I want to set VM options to increase memory, but under the "properties" dialog, there is no way to do this for a modular Netbeans platform project. This has cost me huge amounts of time and I still have not found a good way to set the VM args.
有谁知道在 Netbeans 7 中编译和运行程序时如何使用 Netbeans 平台模块化项目设置 VM 参数?鉴于麻烦,我几乎准备放弃 Netbeans 来创建模块化应用程序.
Does anyone know how to set VM args using a Netbeans platform modular project, when compiling and running the program in Netbeans 7? Given the amount of trouble, I am almost ready to give up on Netbeans to create modular applications.
推荐答案
其实很简单.只需修改 project.properties 文件以包含以下行:
It is quite easy, in fact. Just modify project.properties file to include the following line:
已
run.args.extra=-J-Xmx768m
当然,您可以在其中包含任何其他 JVM 选项.
Of course, you can include any other JVM options there.
享受.
这篇关于如何在 Java Netbeans 平台模块化项目中设置 VM 选项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!