I found out that the error is due to "access denied". It has something to do with java.policy!