Java applet can't access non-public file on same webserver -
I am creating a Java applet for a customer, and I have a problem where I need to read / write For a file on your web server, but that file, in any case, can not be publicly accessible
The Java applet and the file are both on the same server, and I am in the same folder File and .jar file, but if I have them different Trying to access the file in the same folder and
test = WorkbookFactory.create (new file ("test.xlsx")) < P> I have tried writing a full path to the file, and anything seems to work. The error I am getting is:
by Reason: java.security.AccessControlException: access What is the best way to read / write files on a single server What will be seen in public?
If you think Java applets work, there is a basic misconception. They do not run on the server, they run on the client in a web browser. If the client's web browser does not have access to the file, then the applet can not be used.
Comments
Post a Comment