Thanks a ton Gregor!!!Your response certainly helped. It resolved my
issue....



On Apr 4, 11:25 pm, gregor <[email protected]> wrote:
> Hi Gugle,
>
> yes, you need to make a <module>.gwt.xml file. you will then probably
> need to specify the source path in it - that can be as simple as:
>
> <module>
>     <inherits name='com.google.gwt.user.User'/>
>     <!-- inherit any other GWT modules your library uses -->
>     <source path="src"/>  // or whatever
> </module>
>
> so "src" (whatever) specifies your module source code location
> relative to the <module>.gwt.xml file itself in the jar. Then all you
> have to do is inherit the new module in your main GWT application
> gwt.xml file and make sure its jar is in the classpath for the GWT
> compilation. The GWT compiler will find the <module>.gwt/xml file
> first, then follow the source path instruction to find the .java
> files.
>
> regards
> gregor
>
> On Apr 4, 5:28 pm, Gugle <[email protected]> wrote:
>
> > Hi all,
> > I'm trying to build a small GWT library of my own to implement a new
> > widget. I have created a jar file with the java classes I've written.
> > I added this jar file to my classpath in Eclipse and I can access
> > these classes from my Eclipse project without any compilation errors.
> > For e.g., I have a class 'A' which uses class 'B' which I've developed
> > as part of my library. This class compiles fine in Eclipse, but when I
> > try to do a GWT compilation using com.google.gwt.dev.GWTCompiler to
> > get the JS files generated, I get an error indicating that the class
> > 'B' cannot be found, even though the jar file is in classpath in the
> > compile command.
>
> > Can someone advise me on what all should be added to the jar file if I
> > need to publish it as a generic GWT library? What all should I define
> > in my 'libraryname'.gwt.xml file and where should it be placed??
--~--~---------~--~----~------------~-------~--~----~
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