You can eject a compact disc from the drive by using one of three methods:
With software commands; see "How to Eject a Compact Disc With Software Commands"
Manually; see "How to Eject a Compact Disc Manually"
Using an emergency procedure; see "How to Eject a Compact Disc in an Emergency"