Okay, and what class does that belong to?
Type: Posts; User: KevinWorkman
Okay, and what class does that belong to?
That doesn't answer any of the questions I asked.
I'm really not sure what you think that's supposed to do. Answer these questions:
What functions are in the OperatingSystemMXBean class?
What *static* functions are in the OperatingSystemMXBean...
Take a look at the API: OperatingSystemMXBean (Java Platform SE 8 )
That class does not contain that method. In fact, it doesn't contain any static methods, which is how you're trying to call it....
You tell us. What is the error at line 42?