Find a OS interface that can provide that list.
Write a JNI interface to the OS interface to get the list.
Read and display the list.


Moved from What's wrong with code section.