tags:

views:

42

answers:

2

Hi

I want a program to get information about RAM

How can i do that?

+1  A: 

Most of the information you need will be contained in the Runtime class. Have a look at the link. It should be straightforward. If you run into problems with it, I will try to help you out further.

Codemwnci
+3  A: 

There's a couple of memory-related methods in the Runtime class, but note that they only give information about the amount of memory available to (or used by) the JVM, not the hardware it runs on.

Generally, Java is the wrong language to do this kind of thing, since it requires access to OS APIs that Java does not provide.

Michael Borgwardt