Frank Sommers
Posts: 2642
Nickname: fsommers
Registered: Jan, 2002
|
|
Re: Codebase problem in Jini
|
Posted: Feb 25, 2002 4:59 PM
|
|
The codebase is where a VM loads classes from. For example, it would be a URL that offers up classes for downloading.
You can start the JSK-provided HTTP server thus:
java -jar $JINI_HOME/lib/tools jar -port 2002 -dir /export/home/jiniclasses -verbose
Now, put the classes you want the client to download into /export/home/jiniclasses (observing correct package hierarchy, of course).
Then, when you start your service, pass into the VM an enviroment variable thus:
... -Djava.rmi.server.codebase=http://HOSTNAME:2002/ ...
Note (a) that HOSTNAME should *not* be localhost, and (b) the trailing slash at the end of the URL. You can use a web browser to check if you can download classes from that URL.
Hope this helps.
|
|