8 Replies Latest reply: Dec 6, 2013 3:58 AM by gimbal2 RSS

    Java Applet and Microsoft SQL 2012




         I'v been trying to resolve this program for days. I  have done all the research I can and also tried all the fixes that I saw.

      I am using netbeans 7.4 with Microsoft sql 2012.

      Error code: java.security.AcessControlException: access denied ("java.net.SocketPermission" "Worms:1433" "connect,resolve")

      Worms = SQL


      When I run the applet in netbeans it works like a charm.

      After I compile it and open my .html file I get this error.


      I have tried to add a policy in root of project

      My applet.html is in my build.



      grant {

      permission java.net.SocketPermission "*", "resolve";

      permission java.net.SocketPermission "*", "connect";

      permission java.security.AllPermission;



      I have done everything I can think of and read.

      Does anyone have a answer to why this happened?

      Thanks in advanced..