Jump to content
xisto Community
BitShift

The Sandbox Effect

Recommended Posts

For a long time now I have been reading forums and articles to figure out how to write/read files with a Program on the Internet.I'll give you my situation. I have a game that writes/reads a file that keeps track of a high score. It is in Java and it is hosted as a Java Applet and a Java Web Start program.I want to be able to write and read from a certain file on the server, the same directory in which my game is in on my server.Everything I have read says this is perfectly ok and the working sandbox doesn't affect this. Well I can't seem to figure out how to do this.I don't know if the way I write the file is bad, the way I retrieve the directory, or if in the script to execute the applet I need to include something, or in the JNLP file I need to put something.Everything I have read tells me it is possible and easy but I can't find a place that tells me exactly how to implement it.To sum it all up:I have a program wrapped in a single Jar file on my server. I want to be able to have read/write/delete priviledges in the same directory the Jar is in on the server, NOT the clients computer.If anyone could shed any light on the subject I would greatly appreciate it.

Share this post


Link to post
Share on other sites

For a long time now I have been reading forums and articles to figure out how to write/read files with a Program on the Internet.
I'll give you my situation. I have a game that writes/reads a file that keeps track of a high score. It is in Java and it is hosted as a Java Applet and a Java Web Start program.
I want to be able to write and read from a certain file on the server, the same directory in which my game is in on my server.

Everything I have read says this is perfectly ok and the working sandbox doesn't affect this. Well I can't seem to figure out how to do this.

I don't know if the way I write the file is bad, the way I retrieve the directory, or if in the script to execute the applet I need to include something, or in the JNLP file I need to put something.

Everything I have read tells me it is possible and easy but I can't find a place that tells me exactly how to implement it.
To sum it all up:
I have a program wrapped in a single Jar file on my server. I want to be able to have read/write/delete priviledges in the same directory the Jar is in on the server, NOT the clients computer.
If anyone could shed any light on the subject I would greatly appreciate it.


Hi

Other than signed Java Applets, all the Java Applets will be "forced" to run in the sandbox. This is to ensure that the security goals are not compromised. Therefore, in order not to allow your Java Applets to run in a sandbox, you have to ensure that the Applets are digitally signed and they are accepted by the end-users. However, you may want to find out yourself on how to digitally sign your applets.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.