I have been using Sun ONe for a short time and having problem reading
file from
network.
Following piece of code works fine when executed from comand line but
when
executed from bean code it gives
java.io.FileNotFoundException: \\network-comp\shared\mission.htm
(Access is denied)
try {
URL url = new URL("file:\\\\network-comp\\shared\\mission.htm");
InputStream in = url.openConnection().getInputStream();
} catch ( Exception ) {
e.printStackTrace();
}
Any idea is greatly appreciated.
Thanks in advance.
Gopala.
Bob Kranson - 23 Oct 2003 22:21 GMT
Do you need a java.policy permission added to the beans' JVM configuration?
> I have been using Sun ONe for a short time and having problem reading
> file from
[quoted text clipped - 19 lines]
>
> Gopala.