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

查看:32
本文介绍了如何在 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 Installin*.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 Installin*.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 最后显示以下消息:Picked up 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天全站免登陆