Re: Reading files from website



OldPro <rrosskopf@xxxxxxxxxxxxx> writes:

I tried to read files (gif) off of various websites, and I got a
security error each time.

Then you must be using a security manager that doesn't allow that.
Are your code running as an applet?

I can easily copy them by hand to my computer. Does Java not have
the ability to copy or read files from the internet?

Default Java, just running from the command line, can do pretty much
anything. You must either be running in a restricted environment or
manually set up a security manager to cause security exceptions.

/L
--
Lasse Reichstein Nielsen - lrn@xxxxxxxxxx
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
.



Relevant Pages

  • Re: Unable to establish a socket connection
    ... >> appears that I need to go threw the java security manager and grant ... >> permission to the applet to open a socket connection to the server ... Steve R. ...
    (comp.lang.java.programmer)
  • Re: Java Security and file size
    ... We would like to give the applet permission ... I don't see how to do this in Java. ... If you're the ones writing the code for the applet, then you have control over how much disk space it uses. ... I don't know if there is a way to handle disk quota with a security manager, but maybe googling for Java Security Manager Disk Quota. ...
    (comp.lang.java.programmer)
  • Re: Changing Java Security Policy
    ... security manager with one that is more strict.. ... saw was an *assertion*. ... public class NoSecurityApplet extends Applet { ...
    (comp.lang.java.programmer)
  • Re: execute method java from javascript.
    ... The init() method let the applet start up with a specific routine ... on the virtual machine that also configure the security manager. ... > I want to execute a method of one applet from one page HTML. ...
    (comp.lang.java)