473,406 Members | 2,208 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Setting file permissions locally.

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
1 1634

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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Fran Tirimo | last post by:
I am developing a small website using ASP scripts to format data retrieved from an Access database. It will run on a Windows 2003 server supporting FrontPage extensions 2002 hosted by the company...
3
by: tmaster1 | last post by:
Hi, This ASP (Visual Studio 6) code works on other PCs (The ASP code runs locally on localhost), but it causes IE to hang on a new PC (again, the ASP code runs locally on localhost). I think it...
7
by: Josh | last post by:
Hi All, I know this is a novice question that I should be able to solve through searching but I have Googled my fingers off and not found anything that seems to help. I have the following...
11
by: sur | last post by:
Hello, My problem is that File.Exists works fine if my file is on my local drive but returns false if its on any other drive. I think that the issue is probably file permissions and so I have...
10
by: John Salerno | last post by:
I always read about how you need to set certain file permissions (for cgi files, for example), but it's never been clear to me *how* you do this. I know you can run the line chmod 755...
10
by: . | last post by:
Yes, now you can with LocaWapp (and async Ajax): http://daviderognoni.blogspot.com/?locawapp jsFileWrite("testJsFile.txt","This is a test."); alert(jsFileRead("testJsFile.txt"));
10
by: Sridhar | last post by:
HI, I am having problems setting up a website so that it will be available only inside the domain. We have three servers. One is iis server and second one is internal server and the third one is...
7
by: prakashdehury | last post by:
In my c# application when i use this FileStream fs = File.Open("C:\\Temp\\497_01\\\ \Assumption.txt",FileMode.Open); 1. it works fine, when i ran the exe locally. (e.i : c:\c\temp \Test.exe)...
1
by: Alex | last post by:
Hello, I've written a Console application in VB 2005 which parses some files and stores the results in an MS SQL database. It runs beautifully locally, but as soon as I stick the compiled EXE...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.