File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Sound Files without Japplet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Sound Files without Japplet" Watch "Sound Files without Japplet" New topic

Sound Files without Japplet

Landon Blake
Ranch Hand

Joined: Dec 04, 2003
Posts: 121
The book I'm learning Java with said that you need to use a subclass of japplet to play sound files in a program, because the sound features of Java 1.0 were packaged with the applet classes. Is there a way to play sound files in a stand alone program using another method or different set of classes?
The Sunburned Surveyor
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24199

Yes. The Java Media Framework (JMF) is an add-on API that does what you want. See .

[Jess in Action][AskingGoodQuestions]
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
You might want to take a look at The Sound Trail of Sun's Java Tutorial.

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
I agree. Here's the link:
subject: Sound Files without Japplet
It's not a secret anymore!