PDA

View Full Version : question about getting explorer demo to run



JPS
3 Sep 2008, 11:12 AM
Hi. I'm trying to run the explorer demo from eclipse and having some problems. I'll try to explain exactly what I did and any suggestions are appreciated. If there's some step-by-step already posted somewhere that I missed (I did search) a pointer would be great.

I run (from the explorer directory under samples):

projectCreator.cmd -eclipse explorer

Then I import the project into eclipse

Add gxt.jar, gwt-user.jar and gwt-dev-windows.jar to my classpath under project->properties->java build path

I am left with a bunch of errors. Most have to do with resolving anything under "com.extjs.gxt.samples.resources.client" so I decided to add the "resources" (under samples) src path to my build path using the "link source" button in the java build path. I suspect there is a better way to resolve this but can't think of it.

This resolves most of the rest of the errors, but I am left with a handful of errors related to being unable to resolve org.dom4j. I have no idea how to resolve this, so I comment all the offending lines out. Did I need to add the explorer.war file or something for this? I'm *sure* there's a better way to resolve this one!

Now I have to get it to run. My eclipse has a run configuration called "GWT Application" that I think was created by either my GWT installtion or my Instantiations GWT Designer installation. I couldn't get explorer sample to play with this however. So instead I tried to follow the directions in the help center by creating a new configuration under java application. I set the main class to be:

com.google.gwt.dev.GWTShell

and added an argument of:

-out www com.extjs.gxt.samples.explorer.Explorer/index.html

and a VM argument of

-Xmx256M

This gets me very close - I can see the little "Loading Demo" animation in my browser when I run the program. However then I get an error, with this contained in the log window:

[TRACE] Finding entry point classes
[ERROR] Unable to find type 'com.extjs.gxt.samples.explorer.client.Explorer'
[ERROR] Hint: Check that the type name 'com.extjs.gxt.samples.explorer.client.Explorer' is really what you meant
[ERROR] Hint: Check that your classpath includes all required source roots
[ERROR] Failure to load module 'com.extjs.gxt.samples.explorer.Explorer'