How can I mount and unmount hard drives (platform independent, so no using Runtime to execute a hard-coded command) in the Java Programming Language?
How can I mount and unmount hard drives (platform independent, so no using Runtime
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The answer is “Yes And No”. You could not mount or unmount devices in java because each OS has their own methods to do this. BUT… you can provide java api that use adapter pattern for native interface. You should do some things:
It is not pure java, but is good solution I think. Client code will use java.