I have created an RMI server and an
applet that accesses the server.
When I run the applet from Netbeans, everything works great and I get the response back from the server. I have also created a non-applet client and that seems to work as well.
Even though the code was developed using Netbeans, I didn't use any of the GUI tools.
If I run it from my browser (either FireFox or IE), the applet loads, but when I push the button that calls the RMI method I get the following exception:
java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:1099 connect,resolve)
I have found lots of topics and tips on this, but can't really seem to get anything to work.
This is the first RMI server / applet combination I have written, so bear with me if it's an obvious problem.
Server Code:
Applet:
HTML
I have verified that the server is running using the netstat command.
I am running
Java version 1.6.0_13.
Also, I'm just trying to get this to work, that's why the getLargestPrime method is really rather useless....
Any help on this would be greatly appreciated!