Why is access restricted to jre6/lib/rt.jar for OperatingSystemMxBean?
<p>I'm having a little trouble with some Java code I'm trying to compile in Eclipse.  I keep getting the following warning...</p>

<pre><code>Access restriction: The type OperatingSystemMXBean is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\rt.jar
</code></pre>

<p>From this line of code...</p>

<pre><code>com.sun.management.OperatingSystemMXBean bean = (com.sun.management.OperatingSystemMXBean) java.lang.management.ManagementFactory.getOperatingSystemMXBean();
</code></pre>

<p>I've found ways around this but I'm worried about the restriction warning.  This code is for my open source project (<a href="http://www.cftracker.net" rel="nofollow">CfTracker</a>) and I don't want to work around this restriction if I'm going to be breaking some sort of license agreement.  Can anyone help me understand this?</p>
