Tips in reading cd content in java?

Hi there. I'm trying to read folders and files on a CD using Java. I'm always having an error of "Exception in thread "main" java.io.IOException: Input/output error". Can someone teach me the steps in reading CD content in Java? I'm on OS Linux. Thanks.
