How to fix java.security.AccessControlException: access denied
843833Apr 22 2002 — edited Apr 24 2002I get the following errors:
C:\j2eetu\examples\src\ejb\SupplierRegister>runclient -client SupplierRegister.e
ar -name SupplierRegisterClient -textauth
Initiating login ...
Enter Username:guest
Enter Password:guest123
Binding name:`java:comp/env/ejb/SimpleSupplierRegister`
Caught an unexpected exception!
java.rmi.ServerException: RemoteException occurred in server thread; nested exce
ption is:
java.rmi.RemoteException: nested exception is: java.security.AccessContr
olException: access denied (java.io.FilePermission c:\j2ee\public_html\Mill_turn
\exe\suppliers.txt write); nested exception is:
java.security.AccessControlException: access denied (java.io.FilePermiss
ion c:\j2ee\public_html\Mill_turn\exe\suppliers.txt write)
...
....
......
Caused by: java.rmi.RemoteException: nested exception is: java.security.AccessCo
ntrolException: access denied (java.io.FilePermission c:\j2ee\public_html\Mill_t
urn\exe\suppliers.txt write); nested exception is:
java.security.AccessControlException: access denied (java.io.FilePermiss
ion c:\j2ee\public_html\Mill_turn\exe\suppliers.txt write)
.....
How to change the permission for the directory?