By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,945 Members | 1,648 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,945 IT Pros & Developers. It's quick & easy.

Setting file permissions locally.

P: n/a
I know very little about java and javascript, and I'm not really sure if
this is a java or javascript issue.

I'm trying to run an app call jmol in a local browser. jmol is activated by
a javascript, but I'm pretty sure it's running a java app since the java
icon is in my system tray (Windows, obviously).

The problem I'm having is jmol needs to be able to access files on the local
computer and I'm trying to find an easy way to do this. As a temporary
workaround, I went in and edited the java.policy file and I can add a
FilePermission for the files I want to open, but I'd like to find a more
general solution that doesn't require editing the java policy file by hand.

How do people normally handle these permissions? How can I simply give the
app free reign to read file on the computer?

Thanks.

Pete
Oct 9 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a

Fredo wrote:
I know very little about java and javascript, and I'm not really sure if
this is a java or javascript issue.
I think if you spent two minutes thinking about that, you would
discover it is a java issue, not javascript.
>
I'm trying to run an app call jmol in a local browser. jmol is activated by
a javascript, but I'm pretty sure it's running a java app since the java
icon is in my system tray (Windows, obviously).

The problem I'm having is jmol needs to be able to access files on the local
computer and I'm trying to find an easy way to do this. As a temporary
workaround, I went in and edited the java.policy file and I can add a
FilePermission for the files I want to open, but I'd like to find a more
general solution that doesn't require editing the java policy file by hand.

How do people normally handle these permissions? How can I simply give the
app free reign to read file on the computer?
They sign the applet, which then, if accepted by the client, becomes a
secure app and able to access the hard disk.
>
Thanks.

Pete
Oct 9 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.