Mirage Source
http://www.miragesource.net/forums/

Java help Applet doesnt work in webpage
http://www.miragesource.net/forums/viewtopic.php?f=142&t=5601
Page 1 of 1

Author:  Labmonkey [ Fri May 15, 2009 9:58 pm ]
Post subject:  Java help Applet doesnt work in webpage

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.

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.<init>(Unknown Source)
   at java.net.Socket.<init>(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?

Author:  unknown [ Sun May 17, 2009 7:54 pm ]
Post subject:  Re: Java help Applet doesnt work in webpage

Did you sign the applet?

I'm pretty sure that applets which connect to a server not hosted on the web hosts computer MUST be signed. It's really easy to sign it just use a free application called jarsigner.

Author:  Mizuware [ Fri Oct 02, 2009 2:33 am ]
Post subject:  Re: Java help Applet doesnt work in webpage

could be the signed shit, but to me... Read your error, the first line :)

Author:  Labmonkey [ Fri Oct 02, 2009 6:49 pm ]
Post subject:  Re: Java help Applet doesnt work in webpage

Um, this was solved a long long time ago. Read post dates.

Author:  Coke [ Fri Oct 02, 2009 7:41 pm ]
Post subject:  Re: Java help Applet doesnt work in webpage

I don't see a solution posted though.

Author:  Labmonkey [ Fri Oct 02, 2009 8:07 pm ]
Post subject:  Re: Java help Applet doesnt work in webpage

After 5 months, it is usually accepted on these forums if no solution is posted then the person already figured it out or gave up and is either way no-longer looking for help.

Author:  Coke [ Fri Oct 02, 2009 8:17 pm ]
Post subject:  Re: Java help Applet doesnt work in webpage

That's great.

What was the solution?

Author:  GIAKEN [ Fri Oct 02, 2009 8:17 pm ]
Post subject:  Re: Java help Applet doesnt work in webpage

Then you reply with the fix so people know what to do if it happens to them, jack ass.

Author:  Labmonkey [ Fri Oct 02, 2009 10:45 pm ]
Post subject:  Re: Java help Applet doesnt work in webpage

I am sorry

Author:  Nean [ Sat Oct 03, 2009 4:29 pm ]
Post subject:  Re: Java help Applet doesnt work in webpage

Somebody lock this topic before Labmonkey makes an even bigger douche of himself.

Author:  Labmonkey [ Sat Oct 03, 2009 5:41 pm ]
Post subject:  Re: Java help Applet doesnt work in webpage

I had to sign the applet. Sorry for not posting before. Why does everyone think my apologies are sarcastic?

Author:  GIAKEN [ Sat Oct 03, 2009 6:32 pm ]
Post subject:  Re: Java help Applet doesnt work in webpage

Because you didn't post the fix when you apologized...so there was no point to apologizing if you didn't actually correct yourself.

Proper apologies comes with maturity.

Author:  Mizuware [ Sat Oct 03, 2009 6:55 pm ]
Post subject:  Re: Java help Applet doesnt work in webpage

Easy there guys, it's just Labmonkey. :lol:

Author:  Matt [ Sat Oct 03, 2009 7:21 pm ]
Post subject:  Re: Java help Applet doesnt work in webpage

You people need to grow up. If nobody here helped him fix it, by posting in this thread, then he does not need to post the fix. It doesn't pertain to VB6 or Mirage Source in any way.

I'm going to start handing out warnings again.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/