Hardware features

Hello, i need to know the hardware features of any machine trough a java class. I think there is a package or class that allows me to do this.The hardware features i will need are : hard disk, processing velocity and ram memory.any help will be appreciated.Thanks.....
[299 byte] By [Sharam_la] at [2007-11-26 13:57:01]
# 1

Nope. No such feature. The closest you will fine is the system properties, but it doesn't really cover anything on your wishlist.

Java is a platform independent language and actively strives to defend you from the peculiarities of particular hardware. Obtaining the hardware specifics would encouraging coding to the metal and is thus not a desirable core feature.

dcmintera at 2007-7-8 1:36:51 > top of Java-index,Java Essentials,New To Java...
# 2

JNI might be your answer. Since java is too restrictive for such a job, it solves this with native methods that allow you to call a function written in another language (currently only C and C++ are supported). Thus, you can always solve a platform-specific problem (in a relatively non-portable fashion, but then that code is isolated). Applets cannot call native methods, only applications.

kilyasa at 2007-7-8 1:36:51 > top of Java-index,Java Essentials,New To Java...
# 3
I would add a caution - if you need to make extensive use of JNI (or platform specific information otherwise acquired) to achieve your ends, then Java may be a poor language choice.
dcmintera at 2007-7-8 1:36:51 > top of Java-index,Java Essentials,New To Java...