wood burning stoves 2.0
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 agree. Here's the link: http://aspose.com/file-tools
subject: error importing java.rmi.Registry and Server
It's not a secret anymore!