开发者

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.

  1. Choose the Run -> Run Configurations menu.
  2. Right click "Java Applet" and choose "New".
  3. Give your run configuration a name.
  4. Select your project and the applet class.
  5. Choose the "arguments" tab and enter your security policy VM argument.
  6. Click "Run" and off you go.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜