This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I am studying from Sun Core Advanced Features and need a server such as Tomcat (mentioned by name but not the exact version was ever given). The text book is ambiguous as to a specific server... could you please recommend one that is super simple to run in the context of the following text
Alternatively, you can get a lightweight server from
ftp://java.sun.com/pub/jdk1.1/rmi/class-server.zip. That server is not a full-blown web server,
but it is easier to install and has enough functionality to serve class files.
First, move the download directory into the web documents directory of the web server (or
establish a symbolic link).
Next, edit the client.policy file. It must give the client these permissions:
? To connect to ports 1024 and above to reach the RMI registry and the server
? To connect to the HTTP port (usually 80 or 8080) to load the stub class files.
Change the file to look like this:
permission java.net.SocketPermission "*:1024-65535", "connect";
permission java.net.SocketPermission "*:80", "connect";
Finally, you are ready to test your setup.
1. Start the web server.
2. Start a new shell. Make sure that the class path is not set to anything. Change to a
directory that contains no class files. Then start the RMI registry.
Can you please direct me to a server for serving class files for simple RMI practice tonight.