15-05-2009, 09:58 PM
Ok, so I have tested my java app, and it works in the app viewer perfectly! But now I am trying to put it in a webpage and let some friends test, and I have run into trouble.
I made a simple chat program, and put it in a website, but this error appears in the error console.
I am unsure how to fix this. I am new to java, but do I need like some certificate or something?
I made a simple chat program, and put it in a website, but this error appears in the error console.
Code:
java.security.AccessControlException: access denied (java.net.SocketPermission 192.168.1.3:5136 connect,resolve)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkConnect(Unknown Source)
at sun.plugin2.applet.Applet2SecurityManager.checkConnect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.(Unknown Source)
at java.net.Socket.(Unknown Source)
at client.Client.init(Client.java:34)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception: java.security.AccessControlException: access denied (java.net.SocketPermission 192.168.1.3:5136 connect,resolv
I am unsure how to fix this. I am new to java, but do I need like some certificate or something?