Applet not able to access NetworkInterface.getHardwareAddress() api

空扰寡人 提交于 2019-12-25 03:14:46

问题


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 protected 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.


回答1:


You need to grant the required permission. See here.



来源:https://stackoverflow.com/questions/4525013/applet-not-able-to-access-networkinterface-gethardwareaddress-api

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!