Originally posted by Lin Shen: Hi, is it possible for Java to get information such as processor type, cache size, memory size of a computer?
There are some simple properties available that you can use -- but nothing major is readily available.
If you are using a J2EE container -- such as Tomcat, Weblogic, JBoss, etc. -- you can always connect to the MBean server to get the information. If you are using Java 5, there are even some internal mbeans that you can access.
Otherwise, you can also call the OS, via a runtime exec, to get the needed information.