Is there a simple or reliable method to get the total memory of the computer and / or components or models of the computer components?
I searched a lot and the only thing I found was some articles talking about the class com.sun.management.OperatingSystemMXBean
however it is "protected" and this generates an error in the IDEs and I do not know if it is safe to ignore this error, is giving some error is because something is wrong.