Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You should have a project xml file under src/com.myproject.blah (mine is called Setup.gwt.xml) which looks something like:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;module rename-to='setup'&gt; &lt;!-- Inherit the core Web Toolkit stuff. --&gt; &lt;inherits name='com.google.gwt.user.User'/&gt; &lt;!-- Inherit the default GWT style sheet. You can change --&gt; &lt;!-- the theme of your GWT application by uncommenting --&gt; &lt;!-- any one of the following lines. --&gt; &lt;inherits name='com.google.gwt.user.theme.standard.Standard'/&gt; &lt;!-- &lt;inherits name='com.google.gwt.user.theme.chrome.Chrome'/&gt; --&gt; &lt;!-- &lt;inherits name='com.google.gwt.user.theme.dark.Dark'/&gt; --&gt; &lt;!-- Other module inherits --&gt; &lt;inherits name="com.some.external.library.Utils"/&gt; &lt;!-- Specify the app entry point class. --&gt; &lt;entry-point class='com.myproject.blah.client.Setup'/&gt; &lt;stylesheet src="MyStyle.css"/&gt; &lt;/module&gt; </code></pre> <p>In the build.xml file there is a section:</p> <pre><code>&lt;target name="libs" description="Copy libs to WEB-INF/lib"&gt; &lt;mkdir dir="war/WEB-INF/lib" /&gt; &lt;copy todir="war/WEB-INF/lib" file="${gwt.sdk}/gwt-servlet.jar" /&gt; &lt;copy todir="war/WEB-INF/lib" file="/path/to/external/lib.jar" /&gt; </code></pre> <p>where lib.jar contains the com.some.external.library.Utils source referenced from the gwt.xml file.</p> <p>As to point (3), if the extrnal lib only uses that subset of Java the GWT compiler knows about, you're fine.</p> <p>I'm not 100% sure the above is correct, but it does seem to work for me.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload