• Post Reply Bookmark Topic Watch Topic
  • New Topic

Need help with granting read/write permission  RSS feed

Unnar Björnsson
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can´t figure out how to do this but I think it's best if I explain the scenario first so please bear with me:

Me and my partner are doing a school assignment that involves a entertainment website where users log in, play games and get points according how well they did in the game. With these points the user can purchase stuff on their avatar.
Im developing the first game which is a tetris. The application starts by connecting to the mysql server to get players name, to do that it reads the required information from a certain file that contains the server name, database name, username and password. The game starts the player plays a game of tetris and the players points are calculated and stored in the database.
The application is launched via jnlp file so the user simply clicks a link on the website and Tetris starts.

When I manually launch the game I get no problems, but when I run it with -Djava.security.manager option I get file permission exception since the application doesn´t have permission to read the file containing the database information.
I've read tutorials on the web about how to grant permission and signing files and I managed to make a policy file that allows the application to read the database information file but instead I get the following exception:

This seems all to be permission related issues and Im wondering what is the easiest way to give my application, executed via webstart permission to do what it feels like? Im kinda sick of this problem since I don´t really care if my application is unsafe or what not I just want to to run
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!