-
2 Jun 2008 10:53 AM #1
I want use GXT at Netbeans with GWT
I want use GXT at Netbeans with GWT
I added the GXT jar file to the typically Library section but in the deployment a error says the classpath dont know something about GXT. Changes at the gmx.xml and the project classpath dont make a difference. Can any one help me? (I hope the english is okay
)
regards
Farodin
-
2 Jun 2008 2:10 PM #2
Farodin,
Can you copy/paste any error messages or screenshots? Also, try and follow this guide http://extjs.com/gxt/helpcenter (even though it targets eclipse) and ensure you are doing the equivalent in Netbeans.
Without more information, is hard to know what is wrong - typcially though, classpath issues are common.
-
2 Jun 2008 10:15 PM #3
It works more or less after i added this line
<inherits name="com.google.gwt.user.User"/>
in my gwt module. Now the following error occurs
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2882)
at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390)
at java.lang.StringBuffer.append(StringBuffer.java:224)
at java.io.StringWriter.write(StringWriter.java:95)
at java.io.PrintWriter.write(PrintWriter.java:412)
...
i tried -Xmx256m but it doesnt change something..
My module looks like the following:
<?xml version="1.0" encoding="UTF-8"?>
<module>
<inherits name="com.google.gwt.user.User"/>
<inherits name='com.extjs.gxt.ui.GXT'/>
<entry-point class="GameEngine.client.MainModuleEntryPoint"/>
<source path="client"/>
<source path="Modules"/>
<source path="System"/>
<source path="com\extjs\gxt\ui\client\widget\table"/>
</module>
Without the inherits line for gxt the follwing error occurs:
[ERROR] Errors in 'file:.../client/MainModuleEntryPoint.java'
[ERROR] Line 37: No source code is available for type com.extjs.gxt.ui.client.widget.table.Table<S>; did you forget to inherit a required module?
[ERROR] Line 39: No source code is available for type com.extjs.gxt.ui.client.widget.table.TableItem; did you forget to inherit a required module?
-
2 Jun 2008 10:23 PM #4
my gwt xml looks like this...
... and works fine.Code:<module> <inherits name='com.extjs.gxt.ui.GXT'/> <entry-point class="com.mycompany.gxt.client.Test"/> </module>
I also need to add -Xmx256M to my VM arguments when launching the java application.
If you need to do more then I'm unsure how to help with Netbeans, other than to say switch to eclipse and try that?
-
2 Jun 2008 10:36 PM #5
I dont wanna test gxt i want add gxt to my gwt project and use in that
-
2 Jun 2008 11:09 PM #6
Farodin,
I can't possibly understand how your existing GWT application is working inside your GWT project. I can only give you advice on how to get a ExtGWT (GXT) application working, using a normal GWT project (which is based on eclipse as google does itself).
The example I provided is a GWT application, and only needs to inherit com.extjs.gxt.ui.GXT as it then inherits all the GWT stuff to make GWT apps work.
-
3 Jun 2008 12:36 AM #7
So do u mean i have to create a second gwt.xml file an inherits this in my first gwt.xml file?
How then the inherit have be to written?
The error with the memory heap occurs also at -Xmx1024M
Is the GWT already inside GXT so that i only need to use the GXT library?
-
3 Jun 2008 2:16 AM #8
When using GWT in NetBeans, you will also have to set Heap Space for your GWT Compiler in your build-gwt.xml.
You can find it if you change to "Files" view and open the "nbproject" folder of your project.
build-gwt.xml should look like this:
<target name="-post-compile">
<!-- You can override this property in the 'gwt.properties' file -->
<property name="gwt.compiler.output.style" value="OBFUSCATED"/>
<property name="gwt.compiler.logLevel" value="WARN"/>
<java classpath="${javac.classpath}:${src.dir}" failonerror="true"
classname="com.google.gwt.dev.GWTCompiler" fork="true" maxmemory = "512M">
<arg value="-out"/>
<arg path="${build.web.dir}/"/>
-
3 Jun 2008 2:19 AM #9
Note that you will have to add maxmemory attribute everytime you start Netbeans...
Also see: http://groups.google.com/group/Googl...5b97a3cba3a3f2
-
3 Jun 2008 3:43 AM #10
Thanks that solve the problem, but i have a new

At the version set: GWT 1.5 and GXT 1 B3 the following error ocurs:
[ERROR] Errors in 'jar:file:/C:/Users/sknoch/Desktop/gxt-1.0-beta3/gxt.jar!/com/extjs/gxt/ui/client/fx/Fx.java'
[ERROR] Line 15: The import com.google.gwt.user.client.animation cannot be resolved
[ERROR] Line 54: Animation cannot be resolved to a type
[ERROR] Line 58: animation cannot be resolved
I had read http://extjs.com/forum/showthread.php?p=170476 but i cant get what i have to do.
Should i use GWT 1.4(with java1.4....) ?


Reply With Quote