wood burning stoves 2.0*
The moose likes Distributed Java and the fly likes ServiceServerImpl java class does not compile. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Distributed Java
Bookmark "ServiceServerImpl java class does not compile." Watch "ServiceServerImpl java class does not compile." New topic
Author

ServiceServerImpl java class does not compile.

Tripti Ag
Ranch Hand

Joined: Jul 03, 2009
Posts: 35
I have the following two interfaces and a java class. The problem i am getting is that i have implemented all the methods of an interface which my code is implementing, but still compiler complains that i havnt overridden getService method in my class, though i have. I have highlighted the method overridden using . Please tell me, how to solve this problem.Thanks in advance.

Service.java




ServiceServer.java




ServiceServerImpl.java



Rohit Garg
Ranch Hand

Joined: Feb 05, 2008
Posts: 30
Tried it out myself and appeared to work just fine.

I would say that you should check for any classes within some other jar files in your classpath with same name and package. It happens a lot that a preferred classloader in the chain has loaded the some other class (with same package and name) and it just returns that one instead of the one you are thinking about.


Regards,
Rohit.
Tripti Ag
Ranch Hand

Joined: Jul 03, 2009
Posts: 35
Thanks Rohit. It ran successfully. I didnt made any changes but the code compiled without any error. But why i was getting that error is still uncleared.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10425
    
    8

Tripti Ag wrote:

Please check your private messages for an important administrative matter


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
 
Consider Paul's rocket mass heater.
 
subject: ServiceServerImpl java class does not compile.