1. #1
    Ext User
    Join Date
    Jun 2008
    Posts
    10
    Vote Rating
    0
    Farodin is on a distinguished road

      0  

    Default 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. #2
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    2
    gslender is on a distinguished road

      0  

    Default


    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.

  3. #3
    Ext User
    Join Date
    Jun 2008
    Posts
    10
    Vote Rating
    0
    Farodin is on a distinguished road

      0  

    Default


    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?

  4. #4
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    2
    gslender is on a distinguished road

      0  

    Default


    my gwt xml looks like this...

    Code:
    <module>
      	<inherits name='com.extjs.gxt.ui.GXT'/>
    	<entry-point class="com.mycompany.gxt.client.Test"/>
    </module>
    ... and works fine.

    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?

  5. #5
    Ext User
    Join Date
    Jun 2008
    Posts
    10
    Vote Rating
    0
    Farodin is on a distinguished road

      0  

    Default


    I dont wanna test gxt i want add gxt to my gwt project and use in that

  6. #6
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    2
    gslender is on a distinguished road

      0  

    Default


    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.

  7. #7
    Ext User
    Join Date
    Jun 2008
    Posts
    10
    Vote Rating
    0
    Farodin is on a distinguished road

      0  

    Default


    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?

  8. #8
    Sencha User
    Join Date
    May 2008
    Location
    Germany
    Posts
    59
    Vote Rating
    0
    LukasP is on a distinguished road

      0  

    Default


    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}/"/>

  9. #9
    Sencha User
    Join Date
    May 2008
    Location
    Germany
    Posts
    59
    Vote Rating
    0
    LukasP is on a distinguished road

      0  

    Default


    Note that you will have to add maxmemory attribute everytime you start Netbeans...

    Also see: http://groups.google.com/group/Googl...5b97a3cba3a3f2

  10. #10
    Ext User
    Join Date
    Jun 2008
    Posts
    10
    Vote Rating
    0
    Farodin is on a distinguished road

      0  

    Default


    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....) ?

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar