aspose file tools*
The moose likes Applets and the fly likes Applet Signed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Applet Signed" Watch "Applet Signed" New topic
Author

Applet Signed

Paulo Cesar M. Jeveaux
Greenhorn

Joined: Feb 12, 2004
Posts: 11
Hi Staff
An applet that makes connection saw sockets needs to be signed? I am not obtaining to execute an applet that uses sockets is of the Eclipse. Somebody has some tip?
[]s
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8900
    
    8

An applet can open a socket, but only to the server it was downloaded from. If you want to connect to any other computer, you'll have to sign the applet. Look at Signed Applets


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Paulo Cesar M. Jeveaux
Greenhorn

Joined: Feb 12, 2004
Posts: 11
Hi
Thank's for reply.
My applet makes a connection saw socket, but it does not make download or access the archives in the server, it only receives from the server a String... Exactly thus she is necessary that it is signed?
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8900
    
    8

Sounds like you have a different problem. What are you expecting from the server? What do you receive (the more details you give, the more helpful we can be)?
Paulo Cesar M. Jeveaux
Greenhorn

Joined: Feb 12, 2004
Posts: 11
Hi Joe
Good, it is thus. I make a connection for sockets with a sounding lead of petroleo in high sea. After that sending a solicitation and start to receive the data. Everything this happens without problems. But when I try to execute the applet I am of IDE Eclipse, it of the error of security. It is therefore that I want to know if it needs to be signed. I know that an applet alone has access the archives in the server when it is signed, but and with Sockets? Also he needs to be signed?
If you not to understand my English speak to me that I try to correct.
[]s
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8900
    
    8

Originally posted by Paulo Cesar M. Jeveaux:

If you not to understand my English speak to me that I try to correct.

I think I understand. Let me repeat back to you to make sure. There is a computer with petroleum prospecting soundings on it. You can connect to this computer and download the soundings without error. You are trying to make an applet which will connect to this server and download some soundings, but you get a security exception. If my summary is correct, then yes, you need a signed applet. An applet runs inside a security "sandbox" where it cannot access local machine resources (i.e. reading or writing files) or any network destination other than the one it was downloaded from. You can get around these limitations by signing the applet, hosting the applet on the computer with the soundings on it, or by making your applet into an application, which do not run inside a sandbox.
Paulo Cesar M. Jeveaux
Greenhorn

Joined: Feb 12, 2004
Posts: 11
Hi
It is this same, very obliged. That good that you obtained to understand my English, it it is very bad.
The last doubt. Because appet functions when I inside execute it of of IDE Eclipse? It only of the o error when I try to inside execute the applet of a page HTML.
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8900
    
    8

Originally posted by Paulo Cesar M. Jeveaux:
That good that you obtained to understand my English, it it is very bad.

You really don't want to hear my French!

The last doubt. Because appet functions when I inside execute it of of IDE Eclipse? It only of the o error when I try to inside execute the applet of a page HTML.

This is correct behavior. When the applet is running inside of Eclipse it is actually running as an application and doesn't have any restrictions placed on it.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Applet Signed