The Sandbox Effect

free web hosting
Free Web Hosting > Computers & Tech > Programming > Programming General > Java

The Sandbox Effect

BitShift
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.

 

 

 


Reply

Humphrey1988
QUOTE(BitShift @ May 10 2006, 04:57 AM) *

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.

 

 

 


Reply


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

Similar Topics

Keywords : sandbox


    Looking for sandbox, effect






*SIMILAR VIDEOS*
Searching Video's for sandbox, effect
advertisement




The Sandbox Effect