Access restriction on class due to restriction on required library rt.jar for OperatingSystemMXBean ?
Its work for me : Go to the Build Path settings in the project properties. Remove the JRE System Library Add it back; Select "Add Library" and select the JRE System Library. The default worked for me