Search code examples
securityclassloaderjava

Classloader refusing access to AudioPlayer


I copied the text of my program to another computer, but there is some problem with importing sun.audio.AudioPlayer class. The compiler underlines the importing string and when I place mouse over it, there is this text, which I can't quite understand:

Access restriction: The type AudioPlayer is not accessible due to restriction on required library /usr/lib/jvm/java-6-openjdk/jre/lib/rt.jar

What does that mean, and how can I get rid of it? :S


Solution

  • Sounds like you need to configure your eclipse to use openjdk as described here