Applet not able to access NetworkInterface.getHardwareAddress()

I have a requirement where in i want to read the mac address of client m/c using applet.

I found that applet runs in a protected sandbox mode and can't have access to NetworkInterface.getHardwareAddress() api. And because of that i am not geeting mac address when applet runs in broswer where as i get the mac address when applet runs from Eclipse.

I tried using a signed applet but looks like i am not able to prompt the client for any certificates and hence not getting the expected  results back

Can somebody provide some working solution for this
jaingaaAsked:
Who is Participating?
 
btanConnect With a Mentor Exec ConsultantCommented:
I am suggesting that you test on a single user logon machine vs shared machine so that isolation of correct user certificate to be loaded can be minimised. Sometimes, self signed applet is just to make sure the functionality and cert is alright in development. Some links that you may be interested

@ http://kr.forums.oracle.com/forums/thread.jspa?threadID=1144276&start=15&tstart=0
@ http://download.oracle.com/javase/tutorial/deployment/jar/signing.html

Excerpt - "But, I had a similar problem with a call to System.getenv() in the same applet that finally had to be placed in applet init() method in order to work properly. So I finally had the idea of placing the call to NetworkInterface.getHardwareAddress() in the init() method instead of within the applet method called from Javascript"
0
 
James MurrellProduct SpecialistCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.