0

I am making a program with java that gets system level information and reports it back to the user. It is currently only working on Windows operating systems because I'm using something called jWMI which is dependent on WMI. I'm interested in making my program compatible with OSX, but without WMI, I don't know how to get system level information such as total PHYSICAL RAM not the amount of ram dedicated to the jvm. As well as the ram form factor, the maximum PHYSICAL RAM upgrade, the computer and processor manufacturer and model. I need a way to get that information whether it's through something similar to jWMI or if it's something that's built right in to OSX that you can call with java. I don't know anything about OSX and the different versions, so if I need to clarify something just let me know and I will be more than happy to edit this or reply to you to help clear things up.

  • probably using `ioreg` and `ProcessBuilder` [this answer has an example](http://stackoverflow.com/questions/5740390/printing-my-macs-serial-number-in-java-using-unix-commands) – gtgaxiola Jul 24 '14 at 17:59

1 Answers1

0

Maybe SIGAR is of help? It works for a variety of operating systems, including OS X. https://support.hyperic.com/display/SIGAR/Home

lukasender
  • 401
  • 3
  • 6