Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8349787
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T08:06:51+00:00 2026-06-09T08:06:51+00:00

I have a GWT game project. I’d like to pull some of the base

  • 0

I have a GWT game project. I’d like to pull some of the base classes out into a project that can be shared with all my other GWT game projects. Something like:

  • FarmFrenzyFinale (gwt game project)
  • AcesOverNewYork (gwt game project)
  • mylib (shared project that the above two can import)

The project “mylib” would have some generic stuff in it like maybe a euclidean distance method, maybe some other methods which operate on GWT-specific classes, like adding a Label to a RootPanel.

After reading many posts on this subject, it seems that if we want “mylib” to be included in the GWT clientside code, we need to have specific package naming, and a projectname.gwt.xml file. Should look something like:

 |- com.me.mylib
 |    |---- mylib.gwt.xml // not sure of the contents here
 |
 |- com.me.mylib.client
 |    |---- classes you want included clientside go here.

Is the above correct? If so, when creating the project in eclipse, do we just create a new “java project”, or are we supposed to create a new “Web Application” project? A new “web app” project will create a standalone gwt project for us, so I’m guessing we can just do a plain old “java project” as long as we setup the structure above ok.

Then after the above is setup, we can add “mylib” to the classpath of the games (farm frenzy etc). This would be done simply as right clicking the project, properties -> java build path -> projects -> add ?

Thanks

——– Update —————

This is what my project currently looks like:

AcesOverNewYork
    |-- com.me.acesovernewyork
    |      |-- acesovernewyork.gwt.xml
    |-- com.me.acesovernewyork.client
           |-- all java files here, great.

mylib (not a gwt project, just a java project)
    |-- com.me.mylib.client
           |-- Foo.java

Now AcesOverNewYork (AONY) has “mylib” added as a project in the classpath (in eclipse, right-click AONY, Properties -> Java Build Path -> Projects -> Add -> “mylib”.

I use the Foo class in AONY, compiles fine. When I try to run AONY, I get a runtime error:

"No source code is available for type com.me.mylib.client.Foo; 
 did you forget to inherit a required module?"

my acesovernewyork.gwt.xml file has the following in it:

<source path='client'/>

Hmm so what else am I missing here?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T08:06:52+00:00Added an answer on June 9, 2026 at 8:06 am
    • For the library project, you can use a simple Java project.
    • You don’t need a “mylib.gwt.xml”
    • Yes, you can simply right click the project, properties -> java build path -> projects -> add

    If you put the .gwt.xml files of your games into “com.me” (within their project), and add <source path='client' />, then all you have to do is to create a “com.me.client” package both in your game projects, and in your library project.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have gwt-project that is comunication to database. Application design mvp pattern and view
I have a gwt project that uses gwt-mosaic. Here is the error message I
I have a GWT module with the X-GWT-Module-Base http://host:8080/foo/ and would like to call
I have a GWT dialog box that looks like the following: public class FooDialog
I have a GWT/GAE project that has an arraylist of Strings on the server
I have a GWT application that includes an embedded applet. I would like to
I have a GWT project in which I need to manually specify currency, number
I have a GWT app that makes an RPC call to a server to
I have a GWT (+GAE) webapp that allows users to edit Customer entities. When
I have a gwt app that requires GWT Recaptcha for one of its part.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.