-1
Is there any simple or reliable method to take the total memory of the computer and/or the components or models of the computer components?
I did a lot of research and the only thing I found was some articles talking about the class com.sun.management.OperatingSystemMXBean but it is "protected" and this generates an error in Ides and I do not know if it is safe to ignore this error, the end of the day if it is giving some error is because something is wrong.
Tried to use
java.lang.Runtime? https://stackoverflow.com/a/12807848– hkotsubo
Runtime returns the information of the current "program", I can not explain well but it does not return the memory of the computer.
– Eduardo Mior