DRastislav
DRastislav

Reputation: 1882

Open/eject DVD using pure Java Code

Is there any possibilites how to open CD/DVD Rom using pure JAVA code? or must be there implementation of e.g. .vbs script?

Upvotes: 1

Views: 657

Answers (2)

Steve Kuo
Steve Kuo

Reputation: 63094

No. Java does not provide the abstractions for ejecting the optical media drive. You'll have to find a non-pure Java solution such as what Tom describes.

Upvotes: 2

Tom
Tom

Reputation: 26829

I found some sample here. However, did not test it so do not know if it really works.

Also Windows version probably matters (I assumed you refer to Windows as you have mentioned Visual Basic Script).

Upvotes: 2

Related Questions