I was wondering if anybody knew if you can controll hardware with Java (open the CD drive, etc.).
Thank you in advanced,
Yes, no, maybe :)
Usually not directly. But through JNI you can do almost anything if you can create (or have access to) a JNI stub to a library in a native language.
First, THANK YOU FOR RESPONDING!
Second, can you please explain how to do that with JNI?
You can use free or commercial libraries for JNI,
they have different quality, hope you will find free and working.
Example - JNIWrapper