Building Java 1.1 code - security exception

I'm writing an applet that should run on Java 1.1 as well, so I compile with target 1.1, which seems to work. The problem is, I need to access a file on a different server (just read it) but I get a security exception.

I was under the impression that 1.1 code did not have such an exception, or am I wrong here? Is using "target" not enough to produce 1.1 code - do I have to use an old compiler as well?

Thanks for you help to my little problem! :)

[469 byte] By [grbrga] at [2007-10-1 8:15:14]
# 1
This has to do with the applet security restrictions. Search for "applet security restriction", sandbox or "signed applet".
BIJ001a at 2007-7-9 21:18:44 > top of Java-index,Administration Tools,Sun Connection...
# 2
Yes, I'm sure it has. However, there are simple applets out there that can read from all urls, and my applet is compiled using "-target 1.1" - shouldn't this be enough?
grbrga at 2007-7-9 21:18:44 > top of Java-index,Administration Tools,Sun Connection...
# 3

> Yes, I'm sure it has. However, there are simple

> applets out there that can read from all urls, and my

they can't, unless they're signed applets.

> applet is compiled using "-target 1.1" - shouldn't

> this be enough?

no. All that does is tell the compiler to create a classfile that a 1.1 JVM can understand or go up in smoke and fire if it can't create such a classfile.

jwentinga at 2007-7-9 21:18:44 > top of Java-index,Administration Tools,Sun Connection...
# 4

> they can't, unless they're signed applets.

Are you sure? I was under the impression that applets compiled with 1.1 have no such security restrictions... I have access to an applet that can read from any url, and it's not signed (it's only a class file), so I guess there must be a way...?

grbrga at 2007-7-9 21:18:44 > top of Java-index,Administration Tools,Sun Connection...
# 5
Maybe there's a security bug in some JVMs that allows this, but otherwise no.
jwentinga at 2007-7-9 21:18:44 > top of Java-index,Administration Tools,Sun Connection...