[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:
Code:
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)
at weka.core.converters.AbstractFileLoader.<init>(AbstractFileLoader.java:46)
at weka.core.converters.ArffLoader.<init>(ArffLoader.java:56)
at weka.core.converters.ConverterUtils$DataSource.<init>(ConverterUtils.java:127)
at Data.dataset.loadfile(dataset.java:120)
I have read the information about permissions here duckware.com/applets/reference.html#securitymodel
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
Code:
new URL(./cpu.arff)
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
SIAS