Why is access restricted to jre6/lib/rt.jar for OperatingSystemMxBean?

后端 未结 4 938
陌清茗
陌清茗 2020-12-18 21:30

I\'m having a little trouble with some Java code I\'m trying to compile in Eclipse. I keep getting the following warning...

Access restriction: The type Ope         


        
4条回答
  •  猫巷女王i
    2020-12-18 21:56

    The best solution i found for this one is :

    • 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.

    https://stackoverflow.com/a/2174607/1572446

提交回复
热议问题