• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in creating LocalRegistry

 
Reshma Das
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got a problem with RMI. i was trying to create registry using
new InitialContext().rebind("Server",Serverobj);
Iam getting compilation errors
suncertify\server\Serverclass.java:15: Package javax.naming not found in import.
import javax.naming.*;
^
1 error
Iam i missing something ?
 
Rene Larsen
Ranch Hand
Posts: 1179
Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can not use this package because it is not part of JDK 1.2.x, it is part of the JNDI framework, and we are only allowed to use what the JDK 1.2.x offers.
You should try this instead:

/Ren´┐Ż
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic