jnlp - Java - How to get permission in Java Web Start -
hi managed create jar , .jnlp files java application running trouble when runs. launches okay java web start think need when run it doesn't ask permission access hd file i/o.
would appreciate , advise know permission rights i.e. have have classes not sure. error message in java web start below.
exception in thread "awt-eventqueue-0" java.security.accesscontrolexception: access denied (java.io.filepermission stockdatabase;stocks.dat read) @ java.security.accesscontrolcontext.checkpermission(unknown source) @ java.security.accesscontroller.checkpermission(unknown source) @ java.lang.securitymanager.checkpermission(unknown source) @ java.lang.securitymanager.checkread(unknown source) @ java.io.file.exists(unknown source) @ stockcodedatabase.<init>(optradersa.java:782) @ optradersa.actionperformed(optradersa.java:136) @ javax.swing.abstractbutton.fireactionperformed(unknown source) @ javax.swing.abstractbutton$handler.actionperformed(unknown source) @ javax.swing.defaultbuttonmodel.fireactionperformed(unknown source) @ javax.swing.defaultbuttonmodel.setpressed(unknown source) @ javax.swing.abstractbutton.doclick(unknown source) @ javax.swing.plaf.basic.basicmenuitemui.doclick(unknown source) @ javax.swing.plaf.basic.basicmenuitemui$handler.mousereleased(unkno
you need sign jnlp file , configure <security>
element, discussed here.
Comments
Post a Comment