PDA

View Full Version : Need Help in GXT setup



UnitedOfoq
15 Jan 2009, 5:06 AM
HEllo All
I'm trying to work with the GXT under the net beans
First I created a project and imported the JSF & GWT4NB and the project runs using the GWT components
The i tried to use the GXT
I Already added the library of the GXT to the project
I added the inherit statment "<inherits name='com.extjs.gxt.ui.GXT'/>" to the *.gwt.xml file
I also added the style sheet link to the HTML file
But it gives me the following exception
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space

Could any body please help me
Thx

jmhwhite2001
15 Jan 2009, 9:49 AM
Ok, go to:

http://extjs.com/helpcenter/index.jsp

for how to set up GXT with Eclipse. Now, in this video, it shows that you need to increase the memory size when running this tool. So, you might wanna do that. I use Netbeans for JSF development and I would suggest just leaving Netbeans alone for GXT. Just my thoughts. I'm not sure how you are running the tool, so take a look at the video for ideas.

jmhwhite2001
15 Jan 2009, 9:50 AM
When i say increase memory, I'm talking about sending VM options. -Xms160M or something like that.

sjzaluk
15 Jan 2009, 10:07 AM
In NetBeans you will need to modify the build-gwt.xml file every time you open your project as it gets overwritten. You need to add the maxmemory attribute to the java node as such:

<java classpath="${javac.classpath}:${src.dir}" failonerror="true"
classname="com.google.gwt.dev.GWTCompiler" fork="true" maxmemory="512M">

This should fix it.

--Steve

kolli
15 Jan 2009, 11:13 AM
or you can set it up for all the projects in netbeans.conf in the /etc folder in netbeans.

A good reference would be http://developers.sun.com/docs/javacaps/installing/jcapsinstall.inst_increase_heap_size_t.html

shay
8 Feb 2009, 6:35 AM
Hi,

i followed the advice in the guides and threads to setup my env.

increasing memory size solved the build issues , but when i try to debug server side with client side , i get the the error about memory again.

Im sure this is a GXT issue , because the error only started when i added EXT to the project, and i haven't changed one line from the original GWT sample , that worked fine before adding GXT.


i have been struggeling with this for 2 days, did anybody else run into this.

im using netbeans 6.5


Thanks,
Shay

shay
8 Feb 2009, 7:23 AM
the screenshot

sven
8 Feb 2009, 7:44 AM
This is no GXT issue. You also have to modify the maxmemory attribute for the gwt hosted mode shell. This is a basic java thing and has nothing to do with GXT.

shay
8 Feb 2009, 8:43 AM
i did change "maxmemory" in the build-gwt.xml

and i check it every time i load the project , also changed the netbeans .config , and the run params on the project.

all of the above changes allow the project to build properly (it was failing compilation before).

but none of them addresses the debug issues.

is there another setting somewhere else?

Shay

sven
8 Feb 2009, 8:47 AM
You have to set it two times. First time for the build and second time for the hosted mode.

shay
8 Feb 2009, 9:09 AM
i had to add the maxmemory setting to the XML in 3 locations .

interestingly these settings also resolved some display issues that i had on FF.

Shay