Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 4523

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.
jQuery in Action, 2nd edition
subject: Problem with sounds
Similar Threads
Problem playing sound from application
Where to park my abc.wav file in the Netbeans IDE
Saving a sound as byte array
Saving sound as byte array
AudioPlayer issues