My favorites | Sign in
Project Home Wiki Issues Source
Search
for
EclipseSetup  
Using Eclipse
Featured
Updated Oct 9, 2011 by stefan.haustein

Three easy steps:

  1. First, build the project (this is necessary for some dependencies).
  2. Install the Google Plugin for Eclipse (not strictly necessary, but recommended).
  3. Import the project (File/Import/Existing Projects into Workspace: project files are in the root of the repo).

Manual Eclipse project setup / build path fixes:

  1. Use "quake2-gwt-port/src" as the source folder
  2. Exclude com.google.gwt.corp.emul from the build path
  3. Make sure "Google Web Toolkit" is added as a Library
  4. Add missing stuff from the lib directory to the libraries as needed
  5. Make sure the output path is "quake2-gwt-port/war/WEB-INF/classes"

To recompile:

  • Click the little red toolbox icon in your toolbar (courtesy of the Google Plugin).

To run the server:

  • Select Run/Debug Configurations.
  • Select GwtQuakeServer and click Debug.

To debug the code in dev mode:

  • This isn't quite working at the moment, because WebKit versions that support WebGL have just been too flaky.
  • It might work in Chrome/Windows (where there is a dev mode plugin), but we haven't tried it yet.

Comment by shawn.tu...@gmail.com, Apr 15, 2010

I was able to get this almost 100% setup for a Windows setup. I originally did a build on a linux machine and got it running there. Once it was working on my linux environment I tried it within Eclipse. I copied the baseq2 from my linux machine so I didn't have to try and build those resources and as such didn't need the extra packages setup in Windows. Imported project fine and was able to run the maven build within Eclipse to build out the project.

My problem was on the GWT Compile. Every time I have tried it I always get error output as:

Compiling module com.google.gwt.corp.Runtime

Validating newly compiled units
ERROR? Errors in 'jar:file:/C:/Development/gwt-2.0.3/gwt-user.jar!/com/google/gwt/user/client/Event.java'
ERROR? Line 41: No source code is available for type com.google.gwt.event.shared.GwtEvent?<H>; did you forget to inherit a required module? ERROR? Line 42: No source code is available for type com.google.gwt.event.dom.client.HasNativeEvent?; did you forget to inherit a required module? ERROR? Line 47: No source code is available for type com.google.gwt.event.shared.GwtEvent?<H>.Type<H>; did you forget to inherit a required module? ERROR? Line 73: No source code is available for type com.google.gwt.event.shared.HandlerManager?; did you forget to inherit a required module? ERROR? Line 221: No source code is available for type com.google.gwt.event.shared.EventHandler?; did you forget to inherit a required module? ERROR? Line 414: No source code is available for type com.google.gwt.event.shared.HandlerRegistration?; did you forget to inherit a required module?

This occurs within the console for quite a few files. I am not 100% comfortable using gwt yet so not sure if this is a quake2-gwt issue or gwt inside Eclipse. If I ignore the error and instead copy the gwtquake folder from within the maven-build/server/target... I am actually able to use the GwtQuakeServer?.launch file to run the server. Unfortunately the main reason why I am trying to get it running in Eclipse is to view the gwt javascript and to debug.

Anyone know how to fix the GWT error?

Comment by ryanp52...@gmail.com, Apr 28, 2010

I have the same errors Shawn. If anyone could help, it'd be much appreciated! I unfortunately don't have access to a linux environment at the moment. =(

Comment by gaucor...@gmail.com, Jan 7, 2011

Hello,

I followed this 3 steps but my Eclipse IDE complains about many errors. The "ant run" command runs successfully (I can play the game). I believe something is wrong with the project properties in Eclipse.

In most of source files I can see "The declared package does not match the expected package" so I tried to modify the build path in different ways but I never managed to actually solve the problem.

Moving the file or changing the declaration may solve the package declaration problem but would lead to new errors detected in the code that have to be solved one by one. I suppose this is not the way.

Can anybody specify how to configure the build path, libraries, and other properties in Eclipse?

I am using Eclipse Java EE IDE version Helios Release on windows XP.

Thanks.


Sign in to add a comment
Powered by Google Project Hosting