Generally, you should not have any dependencies from code in src on code in test. I believe that the problem here is that the Utils class is in the "test" folder, but the source path for your module is "client". You can add "test" to your module's source path, but I'd recommend that you move the Utils class under your src folder, and then create a module for your tests that inherits from your "Start" module.
On Thu, May 28, 2009 at 2:40 AM, Hara <[email protected]> wrote: > > Hello All > > When I am trying to compile I am getting back an error saying "Did you > forget to inherit" > > The application structure is as follows: > > src-- > |-- client package (Contains the client GUI part) > |-- sever package (Contains the server part) > |-- test package (Contains some useful java class while Client > server > communication.) lets say a file "Utils.java" in test > package. > > > my Start.gwt.xml file has > > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 1.6.4// > EN" "http://google-web-toolkit.googlecode.com/svn/tags/1.6.4/distro- > source/core/src/gwt-module.dtd<http://google-web-toolkit.googlecode.com/svn/tags/1.6.4/distro-%0Asource/core/src/gwt-module.dtd> > "> > <module rename-to='start'> > <!-- Inherit the core Web Toolkit stuff. --> > <inherits name='com.google.gwt.user.User'/> > > <!-- Inherit the default GWT style sheet. You can change --> > <!-- the theme of your GWT application by uncommenting --> > <!-- any one of the following lines. --> > <inherits name='com.google.gwt.user.theme.standard.Standard'/> > <!-- <inherits name='com.google.gwt.user.theme.chrome.Chrome'/> --> > <!-- <inherits name='com.google.gwt.user.theme.dark.Dark'/> --> > > <!-- Other module inherits --> > > <!-- Specify the app entry point class. --> > <entry-point class='com.mycompany.client.Start'/> > </module> > > > when I am trying to compile it says "Did you forget to inherit > com.mycompany.test.Utils" > > Can any please help me in sorting out this issue. > > Thanks. > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
