Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_java_server thread: RMI Problem, The Impl(method) does not recognize my interface...


Message #1 by Schryburt@v... on Sat, 19 Oct 2002 19:45:06
Hello, 

I am currently working with RMI. I wrote the codes for the Interface 
screen, which compiles without an error: here is my interface:

import java.rmi.*;
public interface GetDB extends Remote {
  public String getEmployee( int empid ) throws RemoteException;
}

It is of course, saved under GetDB.java

Now, when I code my GetDBImpl and save it under the same name,(see code 
below):

...
public class GetDBImpl extends UnicastRemoteObject
        implements GetDB {

	GetDBImpl( ) throws RemoteException {
		super( );
	}

	public String getEmployee( int empid )
	      throws RemoteException {
...

when I compile it, I have the following error message:
C:\...\My Documents\GetDBImpl.java:6: cannot resolve symbol
symbol  : class GetDB  
location: class GetDBImpl
        implements GetDB {
                   ^
1 error

It doesn't want to recognize the GetDB file and I know it is not a 
problem with the codes, this program IS working on another computer 
perfectly, but on my computer, it doesn't want to compile it. I have 
tried to code a difference RMI program and the same problem occurred??

I use XP Professionnal for my computer, I have the J2SDK1.4.0 installed 
(same version as on the other computer) and I am using TextPad.  Any 
other program in Java is working fine and compiling fine.. so I don't 
know why is RMI not working with my computer?? 

Anyone have an idea?

Thanks

Sylvie

  Return to Index