Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

problems importing sun.audio.*

 
Tom Bigford
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi - I have a pice of dual purpose code that uses sun.audio.AudioStream and sun.audio.AudioPlayer. It runs fine as an app but when i try to run in appletviewer - I get a security exception at the line of code that represents the first import:
import sun.audio.AudioStream;
Any idea how to resolve this? this applet is intended to run on the internet so policy files may not be the answer ???
TIA - tom
 
Tom Bigford
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No replies so i'll reply to myself about what i have found so far...
sun.audio it turns out is "undocumented" and may not be available in later releases and may not be maintained either ... so I may try to dig it out of the code... The whole reason it was there was to manage sound in an app - any other ideas?
TIA - Tom
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!