Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

urgent please require help  RSS feed

 
sanjays samadder
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Mark Savory
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry to ask but are you quite sure there's no _HelloImplBase.java file?
 
sanjays samadder
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes ,I am using jdk1.3
and using idlj.
helloOperations.java
is there but there is no helloImplBase.java
I am also confused about idl2java and idltojava.
which is where??
please help.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you haven't found the answer by now it is.
Use -fall flag to idlj, default it for it to generate client
code only.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!