Do you have the correct jumpers on it? If its the only device on a IDE cable, than it should be set as master, if its sharing the cable with say, a hard disk or another optical drive, than it should be set at slave.
Ok I checked it is set to slave it shares . This cd drive used to work then it just stopped. It was about the same time as my java went away and I am still messing with that. Could it be a registry problem?