Жизнь и здоровье

 º 

Grāmatvedība

 º 

Grāmatvedības pakalpojumi

 º 

Zaharov.info

 º 

контакты

 º 

web projects

 

 - Начало - Регистрация - Ответить - Поиск - Статистика -
Личные заметки на Zaharov.info / Естествознание / OutOfMemory error when compiling GWT 1.4.10 with Netbeans 5.5
Автор Сообщение
dimedrol
Администратор
# Дата: 12 Авг 2007 07:53
Ответить 


Hello, All !

I have found some similar topics, but it wasn't help me

So... my problem is -
--skip--
Caused by: java.lang.OutOfMemoryError: Java heap space
--skip--
[ERROR] Out of memory; to increase the amount of memory, use the -Xmx
flag at startup (java -Xmx128M ...)

I have tried many ways:
I set the " -Xmn100M -Xms700M -Xmx700M"
as suggested here - http://tinyurl.com/2yewd8
Not helps.
See screenshot - http://i10.tinypic.com/6cr8mya.gif

Also I have reconfigured my c:\Java\netbeans\etc\netbeans.conf file.
from

#netbeans_default_options="-J-Xms32m -J-Xmx128m -J-XX:PermSize=32m -J-
XX:MaxPermSize=160m .....

up to

netbeans_default_options="-J-Xms512m -J-Xmx512m -J-XX:PermSize=256m -J-
XX:MaxPermSize=256m....

No result.
The same error.

Also I tried to edit my c:\Java\Projects\MyProject\superproject
\build.xml file,
as shown here - http://tinyurl.com/2yrolr
and this guy said - it helps, but in my case I always got errors like
"Unable to find 'GWTApplication/client.gwt.xml' on your classpath" or
something similar...

My system is - Windows XP, 1Gb RAM, No Tomcat-s or other servers are
running. (even not installed)
Almost "clean" machine - just Netbeans + GWT.

I write medium-size project, and after adding some more code, I met
this error.
Maybe I need to comment all my code step-by-step, but, I hope there is
another way to solve this problem.
All solutions found here - for Eclipse and so on, but not for
Netbeans.

**********************************

And my very own answer:


Finally ! I have found a solution, wasting the half of my weekend

The closest explanation I have found here - http://tinyurl.com/ythlek
(on this forum)

BUT! There were no clear information about the FILE where to edit this
settings.

Netbeans users must edit their c:\PATH-TO-PROJECT\nbproject\build-
gwt.xml file
instead of "build.xml" file.

My file now looks like this -

<?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->
<!-- (If you delete it and reopen the project it will be recreated.) --

<project name="sitecom-gwt" default="-post-compile" basedir="..">
<description>Generates Javascript for sitecom.</description>

<target name="-post-compile">
<java classpath="${run.classpath}"
classname="com.google.gwt.dev.GWTCompiler" fork="true">
<arg value="-out"/>
<arg path="${build.www.dir}/"/>
<arg value="${application.args}"/>

<!-- Added section to kill OutOfMemory error -->
<jvmarg value="-Xms256m" />
<jvmarg value="-Xmx512m" />
<!-- section END -->

</java>
</target>

</project>

Ваш ответ
         

:) ;) :up: :down: :lol: :confused :cool: :mad: :sad: :shame: :smirk: :tongue: ... Отключить смайлики

» Оставьте это поле пустым 
» Логин  » Пароль 
 

Жизнь и здоровье

 º 

Grāmatvedība

 º 

Grāmatvedības pakalpojumi

 º 

Zaharov.info

 º 

контакты

 º 

web projects

 

miniBB™ © 2001-2010