Java is platform independent, and knows nothing about drives, CD-ROM or otherwise. It only knows how to open a File, given a path to the file. If you know the path to a file on the CD-ROM, you can tell Java to open it for you, but it does not know or care whether a file is on a CD-ROM, DVD, Floppy,
IDE dosk, SCSI disk, ramdisk, flash ram card or mounted over the network.