Re: java api to mount device
Thursday, October 18, 2007 07:43 PM
No there isn't. The concept of "mounting" a device into the filesystem is unique to UNIX-like operating systems, and is really something that the operating system itself is responsible for managing. (Thus, it isn't really in Java's domain to want to be able to mount devices.) You'll need to exec the mount or umount commands directly, and carefully arrange the various priviledges (possibly via sudo settings if you need to run the app as non-root).