[SOLVED] Server file loading
I have developed a java applet which loads a file from its own directory. This works brilliantly when ran from eclipse.
I have moved the applet to my server along with the files and i keep getting:
I have read the information about permissions here duckware.com/applets/reference.html#securitymodel
java.security.AccessControlException: access denied (java.util.PropertyPermission user.dir read)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
at java.lang.System.getProperty(Unknown Source)
I have 4 folders containing class files on my server siu05dr.webs.sse.reading.ac.uk
The applet is within one of these folders (main). I have moved the files (cpu.arff, iris.arff etc.) i would like opening to this same folder on the server and am accessing using this command:
It is then opened and parsed using the WEKA libraries ARFF parsers.
I have also tried
but still get security issues.
What am i doing wrong? am i correct in thinking that you can load files from where the applet is located?
Any help would be really great