Can anyone give me the suggestion for getting the Hard Disk space in Java.
I know 2 ways to gather this information.1 - executing a shell script by using Runtime.exec(....) method, and get theoutputstream.2 - Using Java Native Inteface (jni) to reach os apis...