Thanks Kees Pieters very much , for this quick help,,
I like the idea :)
can i get more information about it?? its the first time i hear about something like this!!
about my question: I am building desktop application not web-based application
that why i ask about command line or built-in function in java will do this ,,
I found this command:
sudo udisks --detach /dev/sdb
This exactly what i need ,, but if you have any idea what is the event the student for sure will do it,, then my action will to pass to my terminal this line??