The moose likes Distributed Java and the fly likes compiling server prog says interface not needed Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Reply Bookmark "compiling server prog says interface not needed" Watch "compiling server prog says interface not needed" New topic
Author

compiling server prog says interface not needed

sanjays samadder
Greenhorn

Joined: Mar 30, 2001
Posts: 24
please help with this
I have compiled a .idl file which has given 5 .java files as expected.
but the books say one of them should be HelloImplBase.java
whereas I get one called HelloOperations.java
intitutively I have extended my helloservant class to the HelloOperation class
but the error is:
\helloServant.java:12: no interface expected here
public class helloServant extends HelloOperations
consequently my helloserver calss do not recognize the objects of the helloservant class.
what is happening???
the rest of the codes in different classes I understood
import Hello.*;
import org.omg.CosNaming.*;
import org.omg.CosNaming.NamingContextPackage.*;
public class helloServant extends HelloOperations
{
public String sayHello()
{
return"hello";
}
}

thank you
 
IntelliJ Java IDE
 
subject: compiling server prog says interface not needed
 
Threads others viewed
Error in using JWIG
error: no interface expected here
Problems with Java RMI
urgent please require help
Import statement problems
IntelliJ Java IDE