This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Distributed Java and the fly likes error importing java.rmi.Registry and Server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Distributed Java
Bookmark "error importing java.rmi.Registry and Server" Watch "error importing java.rmi.Registry and Server" New topic

error importing java.rmi.Registry and Server

C.B. Bakshi

Joined: Oct 04, 2003
Posts: 3
i am getting an error "can't import java.rmi.Registry and java.rmi.Server" package when i compile the program
also the error is coming on the UnicastRemoteObject class
please reply
Michael Ernest
High Plains Drifter

Joined: Oct 25, 2000
Posts: 7292

java.rmi.Server and java.rmi.Registry are not class files. If you are trying to import both packages, try:
import java.rmi.server.*;
import java.rmi.Registry.*;

Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: error importing java.rmi.Registry and Server
It's not a secret anymore!