This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Applets and the fly likes Why I don't get a SecurityException ?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Why I don Watch "Why I don New topic

Why I don't get a SecurityException ??

Hussein Baghdadi
clojure forum advocate

Joined: Nov 08, 2003
Posts: 3479

Hi all
I created a small chat server (you know, Sockets, ServerSockets, threads ..)and the clients will be applets.
I created the following class :

the applet code contains :

Ok, every thing is ok and there is no error and the server and applets are working correctly.
but I am wondering why I don't get a SecurityException ?
my applet is using sockets, which are not allowed in unsigned applets (my jar is unsigned) ??
any ideas ??
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24189

Depends how you're running it. Applets are (generally) allowed to connect to the server they're downloaded from.

[Jess in Action][AskingGoodQuestions]
I agree. Here's the link:
subject: Why I don't get a SecurityException ??