netbeans生成主项目时报错 在线等,问题解决就结帖
netbeans在生成主项目时报错
环境: windows xp
netbeans 6.7.1
错误信息如下:
Compiling 5194 source files to D:\我的文档\NetBeansProjects\ccbs\build\classes
系统资源不足。
有关详细信息,请参阅以下堆栈追踪。
java.lang.OutOfMemoryError: Java heap space
D:\我的文档\NetBeansProjects\ccbs\nbproject\build-impl.xml:427: The following error occurred while executing this line:
D:\我的文档\NetBeansProjects\ccbs\nbproject\build-impl.xml:227: Compile failed; see the compiler error output for details.
生成失败(总时间:25 秒)
一下是netbeans.conf中的内容
谁能帮我解决啊
# ${HOME} will be replaced by JVM user.home system property
netbeans_default_userdir="${HOME}/.netbeans/6.7"
# Options used by NetBeans launcher by default, can be overridden by explicit
# command line switches:
netbeans_default_options="-J-Dorg.netbeans.modules.tomcat.autoregister.token=\"1258111847155\" -J-Dorg.netbeans.modules.tomcat.autoregister.catalinaHome=\"D:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.18\" -J-Dorg.glassfish.v3.installRoot=\"D:\Program Files\sges-v3-prelude\" -J-Dcom.sun.aas.installRoot=\"D:\Sun\AppServer\" -J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-XX:MaxPermSize=200m -J-Xverify:none -J-Dapple.laf.useScreenMenuBar=true -J-Dsun.java2d.noddraw=true"
# Note that a default -Xmx is selected for you automatically.
# You can find this value in var/log/messages.log file in your userdir.
# The automatically selected value can be overridden by specifying -J-Xmx here
# or on the command line.
# If you specify the heap size (-Xmx) explicitely, you may also want to enable
# Concurrent Mark & Sweep garbage collector. In such case add the following
# options to the netbeans_default_options:
# -J-XX:+UseConcMarkSweepGC -J-XX:+CMSClassUnloadingEnabled -J-XX:+CMSPermGenSweepingEnabled
# (see http://wiki.netbeans.org/wiki/view/FaqGCPauses)
# Default location of JDK, can be overridden by using --jdkhome <dir>:
netbeans_jdkhome="D:\Program Files\Java\jdk1.7.0"
# Additional module clusters, using ${path.separator} (';' on Windows or ':' on Unix):
#netbeans_extraclusters="/absolute/path/to/cluster1:/absolute/path/to/cluster2"
# If you have some problems with detect of proxy settings, you may want to enable
# detect the proxy settings provided by JDK5 or higher.
# In such case add -J-Djava.net.useSystemProxies=true to the netbeans_default_options.