dcsimg

How can I detect if there is a CD in the CD-ROM drive using Java?

John Zukowski

There is no support for this built into Java. The best you can do is create a C/C++ program/routine and use JNI to test.