I was also thinking that it should be no problem since I'm using Sun JDK and they class you're using is a Sun specific class.
I'm compiling it in Eclipse and the JRE compiled against (JDK 1.6.0_18) is auto-found by Eclipse.
The "Access restriction" problem is displayed as severity "Error" in Eclipse
I'm wondering where the restrictions for the JRE library rt.jar is specified?
It's not a killer problem since I can choose to ignore the error and compile/run anyway but it kind of stands out as a ugly notification and warning-popup every time I try to run the code.
/Konrad