RMI Newbie

HEllo people,
i just started learning using RMI and currently having problem when compiling my files. I tried finding solution from google achieve and tried them and still same problem occurs.

The problem is, my stubs and skeletons can't be created as the implements class keep getting wrong and error.

here are my the compile trace :

********************

Microsoft Windows XP
(C) Copyright 1985-2001 Microsoft Corp.

C:\>dir
Volume in drive C has no label.
Volume Serial Number is 1842-C419

Directory of C:\

06/03/2005 08:57 PM aglets 06/16/2005 01:36 AM 0 agletsd 01/12/2005 04:27 AM 0 AUTOEXEC.BAT 12/17/2005 04:41 PM

ClientServer 01/12/2005 04:27 AM 0 CONFIG.SYS 03/15/2005 08:53 AM Documents and Settings 06/04/2005 06:13 AM Inetpub 01/30/2005 08:57 AM 172 INSTALL.LOG 06/03/2005 07:51 PM j2sdk1.4.2_04 12/21/2005 02:06 AM jdk1.3.1_17 12/21/2005 01:41 AM Learn 11/16/2005 04:48 AM My Shared Folder 01/12/2005 05:37 AM NVIDIA 12/20/2005 02:31 AM orb.db 12/21/2005 02:06 AM Program Files 12/20/2005 02:56 PM Temp 12/20/2005 03:51 PM WINDOWS 4 File(s) 172 bytes 13 Dir(s) 4,224,606,208 bytes free C:\>cd jdk1.3.1_17 C:\jdk1.3.1_17>cd bin C:\jdk1.3.1_17\bin>dir Volume in drive C has no label. Volume Serial Number is 1842-C419 Directory of C:\jdk1.3.1_17\bin 12/21/2005 05:54 PM . 12/21/2005 05:54 PM .. 12/21/2005 01:39 AM 622 AddressBook.idl 12/21/2005 02:11 AM address_book_system 11/30/2005 10:13 AM 20,600 appletviewer.exe 11/30/2005 10:13 AM 24,678 dt_shmem.dll 11/30/2005 10:13 AM 20,584 dt_socket.dll 12/21/2005 05:21 PM examples.rmi 11/30/2005 10:13 AM 20,598 extcheck.exe 11/30/2005 10:13 AM 360 HtmlConverter.bat 11/30/2005 10:13 AM 20,600 idlj.exe 11/30/2005 10:13 AM 20,581 jar.exe 11/30/2005 10:13 AM 20,602 jarsigner.exe 11/30/2005 10:13 AM 20,574 java.exe 11/30/2005 10:13 AM 20,595 javac.exe 11/30/2005 10:13 AM 20,595 javadoc.exe 11/30/2005 10:13 AM 20,595 javah.exe 11/30/2005 10:13 AM 20,591 javap.exe 11/30/2005 10:13 AM 20,576 javaw.exe 11/30/2005 10:13 AM 20,604 jdb.exe 11/30/2005 10:13 AM 94,302 jdwp.dll 11/30/2005 10:13 AM 20,598 keytool.exe 11/30/2005 10:13 AM 20,612 native2ascii.exe 11/30/2005 10:13 AM 20,580 oldjava.exe 11/30/2005 10:13 AM 20,597 oldjavac.exe 11/30/2005 10:13 AM 20,582 oldjavaw.exe 11/30/2005 10:13 AM 20,596 oldjdb.exe 11/30/2005 10:13 AM 20,604 policytool.exe 11/30/2005 10:13 AM 20,586 rmic.exe 11/30/2005 10:13 AM 20,592 rmid.exe 11/30/2005 10:13 AM 20,604 rmiregistry.exe 11/30/2005 10:13 AM 20,603 serialver.exe 11/30/2005 10:13 AM 20,619 tnameserv.exe 11/30/2005 10:13 AM 20,590 unregbean.exe 12/21/2005 05:14 PM webs 30 File(s) 655,420 bytes 5 Dir(s) 4,224,589,824 bytes free C:\jdk1.3.1_17\bin>cd web The system cannot find the path specified. C:\jdk1.3.1_17\bin>cd webs C:\jdk1.3.1_17\bin\webs>dir Volume in drive C has no label. Volume Serial Number is 1842-C419 Directory of C:\jdk1.3.1_17\bin\webs 12/21/2005 05:14 PM . 12/21/2005 05:14 PM .. 10/16/2001 10:05 AM 498 index.html 05/26/2005 03:06 PM 4,209 server.class 05/26/2005 03:06 PM 10,758 server.java 05/26/2005 03:06 PM 507 webserver_starter$1.class 05/26/2005 03:06 PM 2,549 webserver_starter.class 12/01/2004 09:51 PM 3,289 webserver_starter.java 6 File(s) 21,810 bytes 2 Dir(s) 4,224,589,824 bytes free C:\jdk1.3.1_17\bin\webs>javac server.java server.java:38: cannot resolve symbol symbol : class webserver_starter location: class server public server(int listen_port, webserver_starter to_send_message_to) { ^ server.java:59: cannot resolve symbol symbol : class webserver_starter location: class server private webserver_starter message_to; //the starter class, needed for gui ^ 2 errors C:\jdk1.3.1_17\bin\webs>cd.. C:\jdk1.3.1_17\bin>cd examples.rmi C:\jdk1.3.1_17\bin\examples.rmi>dir Volume in drive C has no label. Volume Serial Number is 1842-C419 Directory of C:\jdk1.3.1_17\bin\examples.rmi 12/21/2005 05:21 PM . 12/21/2005 05:21 PM .. 12/21/2005 05:19 PM 1,215 RMIServer.java 12/21/2005 05:20 PM 297 ServerInterface.class 12/21/2005 05:18 PM 382 ServerInterface.java 3 File(s) 1,894 bytes 2 Dir(s) 4,224,585,728 bytes free C:\jdk1.3.1_17\bin\examples.rmi>javac ServerInterface.java C:\jdk1.3.1_17\bin\examples.rmi>]]> javac RMIServer.java
RMIServer.java:16: cannot resolve symbol
symbol : class ServerInterface
location: class examples.rmi.RMIServer
implements ServerInterface
^
1 error

********************************

here are my ServerInterface.java file

**********************************
package examples.rmi;

import java.rmi.*;

public interface ServerInterface extends Remote
{
public String getString() throws RemoteException;
public void setString(String s) throws RemoteException;

}

please review..thanks

Please sign in to leave a comment.