Cannot use gwttk in hosted mode

1 view
Skip to first unread message

kevin tian

unread,
Oct 18, 2007, 6:21:10 AM10/18/07
to GWT Tk
Hi,

I cannot use the gwttk library in hosted mode. I already added eclipse
class path and I know I have to modify other files in order for it to
work.

Here are what i have changed

module.launch
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration
type="org.eclipse.jdt.launching.localJavaApplication">
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
<listEntry value="/project_iin"/>
</listAttribute>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
<listEntry value="4"/>
</listAttribute>
<booleanAttribute
key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
<listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
<listEntry value="&lt;?xml version=&quot;1.0&quot;
encoding=&quot;UTF-8&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry
containerPath=&quot;org.eclipse.jdt.launching.JRE_CONTAINER&quot;
javaProject=&quot;project_iin&quot; path=&quot;1&quot; type=&quot;
4&quot;/&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot;
encoding=&quot;UTF-8&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry
internalArchive=&quot;/project_iin/src&quot; path=&quot;3&quot;
type=&quot;2&quot;/&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot;
encoding=&quot;UTF-8&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry
id=&quot;org.eclipse.jdt.launching.classpathentry.defaultClasspath&quot;&gt;&#13;&#10;&lt;memento
project=&quot;project_iin&quot;/&gt;&#13;&#10;&lt;/
runtimeClasspathEntry&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot;
encoding=&quot;UTF-8&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry
externalArchive=&quot;/root/gwt-linux-1.4.60/gwt-dev-linux.jar&quot;
path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot;
encoding=&quot;UTF-8&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry
externalArchive=&quot;/root/gwt-linux-1.4.60/gwttk-0.2.3.jar&quot;
path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
</listAttribute>
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH"
value="false"/>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE"
value="com.google.gwt.dev.GWTShell"/>
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS"
value="-out www com.iinp.amwitc/amwitc.html"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR"
value="project_iin"/>
</launchConfiguration>

module-shell
#!/bin/sh
APPDIR=`dirname $0`;
java -cp "$APPDIR/src:$APPDIR/bin:/root/gwt-linux-1.4.60/gwt-user.jar:/
root/gwt-linux-1.4.60/gwttk-0.2.3.jar:/root/gwt-linux-1.4.60/gwt-dev-
linux.jar" com.google.gwt.dev.GWTShell -out "$APPDIR/www" "$@"
com.iinp.amwitc/amwitc.html;

module-compile
#!/bin/sh
APPDIR=`dirname $0`;
java -cp "$APPDIR/src:$APPDIR/bin:/root/gwt-linux-1.4.60/gwt-
user.jar:/root/gwt-linux-1.4.60/gwttk-0.2.3.jar:/root/gwt-linux-1.4.60/
gwt-dev-linux.jar" com.google.gwt.dev.GWTCompiler -out "$APPDIR/www"
"$@" com.iinp.amwitc;

Help please from anyone??

Thank you

Reply all
Reply to author
Forward
0 new messages