Again, specifics and error messages help. To fabricate an example:

If you wanted to include "com.foo.my.java.package.AClass" in a GWT
application then you could create "com/foo/my/java/MyModule.gwt.xml"
and add the "package" sub-package as translatable source. Like this:

<module>
  <source path="package" />
</module>

That will make all classes in com.foo.my.java.package available,
assuming they meet the criteria for translation. Then you would
inherit MyModule in your module.

The Developer's Guide is an excellent resource for learning more about
modules and GWT compilation:

http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=DevGuideClientSide



On Fri, Dec 19, 2008 at 6:51 PM, Smith <[email protected]> wrote:
>
> How do I create a module from an existing set of classes? When I try
> to create a new module in eclipse, it fails maybe because the
> directory structure is different from the GWT standard. I can't change
> the direcory structure of these classes that I need. Where do I place
> the .gwt.xml file?
>
>
> On Dec 19, 2:04 pm, "Isaac Truett" <[email protected]> wrote:
>> > entrypoint  can't find the classes and asks if I forgot to inherit a
>> > module.
>>
>> You did. The module probably doesn't exist, so forgetting it is
>> understandable. You have to define a module that includes your
>> external classes. And any classes they depend on also have to be part
>> of a module (repeat as necessary). And all of the aforementioned
>> classes have to have source code available on the classpath in order
>> to compile as part of a GWT client.
>>
>>
>>
>> On Fri, Dec 19, 2008 at 1:20 PM, Smith <[email protected]> wrote:
>>
>> > All,
>>
>> > I have some JPA entity classes in a JAR file and I need both the GWT
>> > RPC implemenation servlet and my entrypoint
>> >  to have access to these classes.
>>
>> > However, my service which is placed in the package/server directory
>> > can access these classes but the entrypoint class which is placed in
>> > package/client direcoty can't access the classes in the jar file. My
>> > code compiles fine but the shell complains in hosted mode that the
>> > entrypoint  can't find the classes and asks if I forgot to inherit a
>> > module.
>>
>> > Thanks- Hide quoted text -
>>
>> - Show quoted text -
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to