I had just played around with loading libraries in java, and I think now the best way to do what you'd like is to make a dll that does what you want with the CD rom; load it via System.loadlibrary("MyLibrary"), and create a public native void openCD(); method in your class.

It works for writing to the bootsector of a floppy disk