March 13, 2012

Access restriction: The type NetworkInterface is not accessible

How to solve the following error in eclipse IDE ?

Access restriction: The type Network Interface is not accessible


Eclipse IDE



Dear Friends, Hope any one had gone through this error once in your life if you had worked on  any java networking projects  or programs

This post will help you to clear the error " Access restriction : The type network interface is not accessible" which happens while java developers works on eclipse.


Solution

Do the following in eclipse (steps to do)

Go to

windows

tab in eclipse,

Navigate to

Preferences


then

Java


then

compiler


choose

Errors/Warning


you can see

Deprecated and restricted A P I


in that

Forbidden Reference ( access rules)


change this to warning




If you found the post is useful Or have any mistakes please provide your feedback through comments.

Thanking you....

No comments:

Post a Comment

Your feedback may help others !!!

Facebook comments