Running Eclipse aplication or applet with permissions
I have applet which I run in command line like this:
"C:\Program Files (x86)\Java\jdk1.6.0_21\bin\appletviewer.exe" -J"-Djava.security.policy=java.policy.applet" cw11.html
How can I run this applet in Eclipse wi开发者_Go百科th my java.policy.applet
permissions?
Its a long time since I wrote an applet, but you should be able to do it by creating a new applet run configuration.
- Choose the Run -> Run Configurations menu.
- Right click "Java Applet" and choose "New".
- Give your run configuration a name.
- Select your project and the applet class.
- Choose the "arguments" tab and enter your security policy VM argument.
- Click "Run" and off you go.
精彩评论