The DateApplet,htm and DateApplet.java files mentioned on page 638 of "Java Cookbook" by Ian Darwin (ISBN 9 780 596 007010) are not on Ian's Website: http://javacook.darwinsys.com/javasrc...
The message is "webpage is not available"
Help get this topic noticed by sharing it on Twitter, Facebook, or email.
Thanks for your interest in Java Cookbook, 2nd Edition. The example code for this title can be downloaded here: http://examples.oreilly.com/978059600.... If that is not what you're looking for please contact one of our book techs. They can be reached at: email@example.com or 1-800-889-8969 or 1-707-827-7019 (outside the USA) 7:30 am to 5:00 PST. Hope this helps!
Customer Service Representative
I'm a Windows .NET C# programmer, so I am struggling with Linux / Java / RMI.
Unfortunately the download (http://examples.oreilly.com/978059600...) fails.
Also, on page 641, the command at the center of the page "java -Djava..." does not work. Can someone explain what exactly "stubsdir" and "ServerMain" are?
I'm sorry to hear you had trouble downloading the sample code from our site. If you'll right-click on the file there and choose "Save Link As" (or whatever your particular browser calls it), that should download that .jar file. A jar file is really a zip file, but made for Java. To unzip the file, just change the .jar to .zip and unzip it. In the rmi folder there, you will see those files you are looking for.
On page 641, it says:
java -Djava.rmi.server.codebase=http://serverhost/stubsdir/ ServerMain
In this example, serverhost is the TCP/IP network name of the host where the RMI
server and registry are running, and stubsdir is some directory relative to the web server from which the stub files can be downloaded.
I hope that helps,
O'Reilly Book Support