如何在Borland JBuilder 2005/2006中增加javac进程的最大堆大小 [英] How do you increase the maximum heap size for the javac process in Borland JBuilder 2005/2006

查看:154
本文介绍了如何在Borland JBuilder 2005/2006中增加javac进程的最大堆大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在大多数现代IDE中,可以设置一个参数以确保javac获得足够的堆内存来进行其编译.由于不值得在这里讨论的原因,我们暂时将其与JBuilder 2005/2006绑定在一起,并且看来源代码的数量已经超出了Javac可以处理的数量.

In most modern IDEs there is a parameter that you can set to ensure javac gets enough heap memory to do its compilation. For reasons that are not worth going into here, we are tied for the time being to JBuilder 2005/2006, and it appears the amount of source code has exceeded what can be handled by javac.

请保留特定于JBuilder 2005/2006 javac的答案(我们目前无法迁移,并且Borland Make编译器不正确支持Java 1.6)

Please keep the answer specific to JBuilder 2005/2006 javac (we cannot migrate away right now, and the Borland Make compiler does not correctly support Java 1.6)

我意识到应该如何以及将哪些参数 传递给javac,问题是IDE似乎不允许在任何地方设置这些参数. Jbuilder Install \ bin * .config文件中隐藏了很多配置,我认为答案可能在某处,但没有找到.

I realize how and what parameters should be passed to javac, the problem is the IDE doesn't seem to allow these to be set anywhere. A lot of configuration is hidden down in the Jbuilder Install\bin*.config files, I feel the answer may be in there somewhere, but have not found it.

推荐答案

您找到了解决该问题的好方法吗?

did you find a good solution for that problem?

我有同样的问题,我发现的唯一解决方法是: 环境变量JAVA_TOOL_OPTIONS可用于为JVM提供参数.

I have the same problem and the only solution I found is the following: The environment variable JAVA_TOOL_OPTIONS can be used to provide parameters for the JVM.

http://java.sun.com/javase/6/docs/platform/jvmti/jvmti.html#tooloptions

我创建了具有以下内容的批处理文件"JBuilderw.bat":

I have created a batch file "JBuilderw.bat" with the following content:

设置JAVA_TOOL_OPTIONS = -Xmx256m

set JAVA_TOOL_OPTIONS=-Xmx256m

JBuilderw.exe

JBuilderw.exe

每次我使用此批处理文件env.var启动JBuilder.将设置JAVA_TOOL_OPTIONS,并且javac.exe将收到该设置. JVM最后显示以下消息:已拾取JAVA_TOOL_OPTIONS:-Xmx256m"

Each time I start JBuilder using this batch file the env.var. JAVA_TOOL_OPTIONS will be set and javac.exe will receive the setting. The JVM displays at the end the following message: "Picked up JAVA_TOOL_OPTIONS: -Xmx256m"

缺点:由JBuilder启动的所有虚拟机都将获得该设置. :(

Drawback: all virtual machines started by JBuilder will get that setting. :(

谢谢, JB

这篇关于如何在Borland JBuilder 2005/2006中增加javac进程的最大堆大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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