Safely removing USB Thumbdrive through Java!

Can someone give me a sample code for safely removing USB Thumbdrive using Java. Thank You!
[98 byte] By [Lana82a] at [2007-11-27 9:04:16]
# 1
> Can someone give me a sample code for safely removing> USB Thumbdrive using Java. Thank You!Huh?
Navy_Codera at 2007-7-12 21:37:13 > top of Java-index,Java Essentials,New To Java...
# 2
I have wrote a JAVA program to detect and read a file from a USB THUMBDRIVE. Now i have to finish the last part which is to remove (eject) the thumbdrive safely from the application itself instead of going to the desktop taskbar and clicking the safely remove icon. Can it be done by Java?
Lana82a at 2007-7-12 21:37:13 > top of Java-index,Java Essentials,New To Java...
# 3
In pure java, no. With the help of JNI, likely.
Navy_Codera at 2007-7-12 21:37:13 > top of Java-index,Java Essentials,New To Java...
# 4
> In pure java, no. With the help of JNI, likely.Or he could take 3 seconds and do it himself...
CaptainMorgan08a at 2007-7-12 21:37:13 > top of Java-index,Java Essentials,New To Java...
# 5
If you're just reading from the USB device the user can just unplug it whenever he likes, no need for safe removal.
ejpa at 2007-7-12 21:37:13 > top of Java-index,Java Essentials,New To Java...