This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
Originally posted by Pat Farrell: You have to have both a client and a server program running simultaneously
The original poster says they're just trying to run the server. Most client/server and similar topologies are quite happy to run the server with no clients. You often can't run a client without a server, but you usually can run a server without a client.
The "access denied" error looks more like trying to run the server in an environment where it's not allowed to do things like open ports. It's not an applet, is it? That's pretty unlikely to be allowed to open ports. Similarly, some application servers won't allow it.
What's the OS?
Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.
Actually if you use JDK 1.4 and above, you don't need to run rmiregistry anymore.
By the way, it seems to me that the problem is because of the SecurityManager. Inside your code, do you have something like:
If yes, you can try to remove it. If you set the SecurityManager, you need to specify the policy file, e.g. java -Djava.security.policy=server.policy WhateverClass nd grant the permission for the SocketPermission.
Joined: Mar 08, 2007
I have removed that security part code and the exception is hidden now, but, another exception has risen