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

Problem with sounds

Pan Niko
Ranch Hand

Joined: Mar 19, 2011
Posts: 86


I did't use sounds in my programs before, so i'm completly new on this. I'm using the structure below

I have problem with AudioStream type, underline it and says "Access restriction: The type AudioStream is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\rt.jar"

What is the problem. Also, there is any other way to insert sounds in the program?
Darryl Burke

Joined: May 03, 2008
Posts: 5115

is any other way to insert sounds in the program?

static method Applet#newAudioClip(URL url)

luck, db
There are no new questions, but there may be new answers.
I agree. Here's the link:
subject: Problem with sounds
It's not a secret anymore!