Hi,
Any java code that is used by GWT must be in some module's source path. The
Interface that you're referencing in (2) from (1) is not part of any
module's source path.

One way to get around this without introducing a new module is to change the
package of the interface so that from the classloader's point of view, the
interface WOULD be on the module's source path.

For example, suppose that you had a module A.gwt.xml under the package
com.myproj, and you have some java classes in the com.myproj.client package
which are referencing an interface com.anotherproj.interfaces.I, which is
located in a Java project. To make this work, you could move the interface
to the com.myproj.client package in (1), and then at runtime, the interface
would appear to be under the module's source path.


Rajeev

On Fri, Jul 31, 2009 at 4:29 AM, CI-CUBE <[email protected]> wrote:

>
> Well, the basic issue (JAR creation) is fixed, I simply re-installed
> Eclipse (planned to switch to 3.5 anyway).
>
> Just for clarification (and to avoid additional effort): if I want to
> include a separate Java library, this must be introduced to GWT as
> another GWT project? So there's no way - e.g. by source paths or
> whatever - to import the corresponding classes directly? Introducing
> another GWT Module sounds like overhead to me... Can someone please
> verify this?
>
> TIA!
>
>   Ekki
>
> On Jul 31, 1:06 am, "frederick8206" <[email protected]> wrote:
> > You should import everything that will be referenced by gwt 'client'
> code.
> > In your example, you should first make the project 1 as a gwt module,
> named it net.myapp.module1.Module1. And then in you project 2, you should
> declare import m1 in the .GWT.xml file for project 2.
> >
> > The import statement is like this <inherits
> name='net.myapp.module1.Module1'/>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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