Article View: borland.public.jbuilder.java.language
Article #8268Using RMI compiler
From: Harry J. Kobetitsch
Date: Tue, 03 Apr 2001 22:53
Date: Tue, 03 Apr 2001 22:53
35 lines
2037 bytes
2037 bytes
I have the following code in PerfectTimeI.java:
import java.rmi.*;
interface PerfectTimeI extends Remote {
long getPerfectTime() throws RemoteException;
}
I have the following code in PerfectTime.java:
import java.rmi.*;
import java.rmi.server.*;
import java.rmi.registry.*;
import java.net.*;
public class PerfectTime extends UnicastRemoteObject implements PerfectTimeI
{
public long getPerfectTime() throws RemoteException {
return System.currentTimeMillis();
}
public PerfectTime() throws RemoteException {}
public static void main(String[] args) throws Exception {
System.setSecurityManager(new RMISecurityManager());
PerfectTime pt = new PerfectTime();
Naming.bind("PerfectTime", pt);
System.out.println("Ready to do time");
}
The source code and output go to C:\rmi where C:\rmi\rmi.pjx
exists.
For the PerfectTime.java file I have the properties set so that
the build generates RMI in the RMI compiler settings dialog.
However when I try to build the project I get the following error:
"PerfectTime_Stub.java": Error #: 300 : class PerfectTimeI not found in
class PerfectTime_Stub....
Technical Details
Message-ID:
<9adk6b$74j$1@nntp9.atl.mindspring.net>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed1.earthlink.net!newsfeed2.earthlink.net!newsfeed.earthlink.net!news.mindspring.net!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,83d4ec81a19588f0,start X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-04-03 15:54:02 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed1.earthlink.net!newsfeed2.earthlink.net!newsfeed.earthlink.net!news.mindspring.net!not-for-mail From: "Harry J. Kobetitsch" <kobet@ix.netcom.com> Newsgroups: borland.public.jbuilder.java.language Subject: Using RMI compiler Date: Tue, 3 Apr 2001 17:53:44 -0500 Organization: MindSpring Enterprises Lines: 39 Message-ID: <9adk6b$74j$1@nntp9.atl.mindspring.net> NNTP-Posting-Host: cf.dc.b4.8d X-Server-Date: 3 Apr 2001 22:51:55 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700