-
Applet error!!!
Recently, Im working on a school major project about Java networking game, Im doing the server-client applet that can work over the network, but fail. It shows the following error:
java.security.AccessControlException: access denied (java.net.SocketPermission 152.226.136.91:5001 connect,resolve)
What can be done to the above error? Please help, its extremely urgent!!!!!!!!!!!!Thanks in advance.
(Please note that I have to use Java 2 to create the applets and I am using Windowx XP)
-
It would seem that the "sanbox" is not allowing you to connect to the server. By chance, is the address not the same as the server serving up the applet? An easy "fix" is to change your policy file to all everything. It is better to narrow the permissions down. Do a search in google on java policy files.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks