开发者

Applet not able to access NetworkInterface.getHardwareAddress() api

I have a requirement wherein I want to read the mac address of client m/c using an applet.

But after some googling I found that applets run in a protect开发者_JAVA技巧ed sandbox mode and can't have access to NetworkInterface.getHardwareAddress() api. And because of that I am not getting mac address when applet runs in browser where as i get the mac address when applet runs from Eclipse.

Please let me know way so that applet can get access to NetworkInterface.getHardwareAddress() api.


You need to grant the required permission. See here.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜