java.lang.IllegalAccessError: class com.sun.media.sou nd.AbstractPlayer cannot access its superclass com.sun.media.sound.AbstractMidiD evice

Coderanch | Ernst Jan Reuvekamp | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    sequencer = MidiSystem.getSequencer();

    Coderanch | 5 years ago | Ernst Jan Reuvekamp
    java.lang.IllegalAccessError: class com.sun.media.sou nd.AbstractPlayer cannot access its superclass com.sun.media.sound.AbstractMidiD evice

    1 unregistered visitors

    Root Cause Analysis

    1. java.lang.IllegalAccessError

      class com.sun.media.sou nd.AbstractPlayer cannot access its superclass com.sun.media.sound.AbstractMidiD evice

      at java.lang.ClassLoader.defineClass1()
    2. Java RT
      MidiSystem.getSequencer
      1. java.lang.ClassLoader.defineClass1(Native Method)
      2. java.lang.ClassLoader.defineClass(Unknown Source)
      3. java.security.SecureClassLoader.defineClass(Unknown Source)
      4. java.net.URLClassLoader.defineClass(Unknown Source)
      5. java.net.URLClassLoader.access$100(Unknown Source)
      6. java.net.URLClassLoader$1.run(Unknown Source)
      7. java.net.URLClassLoader$1.run(Unknown Source)
      8. java.security.AccessController.doPrivileged(Native Method)
      9. java.net.URLClassLoader.findClass(Unknown Source)
      10. sun.misc.Launcher$ExtClassLoader.findClass(Unknown Source)
      11. java.lang.ClassLoader.loadClass(Unknown Source)
      12. java.lang.ClassLoader.loadClass(Unknown Source)
      13. java.lang.ClassLoader.defineClass1(Native Method)
      14. java.lang.ClassLoader.defineClass(Unknown Source)
      15. java.security.SecureClassLoader.defineClass(Unknown Source)
      16. java.net.URLClassLoader.defineClass(Unknown Source)
      17. java.net.URLClassLoader.access$100(Unknown Source)
      18. java.net.URLClassLoader$1.run(Unknown Source)
      19. java.net.URLClassLoader$1.run(Unknown Source)
      20. java.security.AccessController.doPrivileged(Native Method)
      21. java.net.URLClassLoader.findClass(Unknown Source)
      22. sun.misc.Launcher$ExtClassLoader.findClass(Unknown Source)
      23. java.lang.ClassLoader.loadClass(Unknown Source)
      24. java.lang.ClassLoader.loadClass(Unknown Source)
      25. com.sun.media.sound.MixerSequencerProvider.getDeviceInfo(MixerSequencerProvider.java:28)
      26. javax.sound.midi.MidiSystem.getFirstDevice(Unknown Source)
      27. javax.sound.midi.MidiSystem.getFirstDevice(Unknown Source)
      28. javax.sound.midi.MidiSystem.getFirstDevice(Unknown Source)
      29. javax.sound.midi.MidiSystem.getDefaultDevice(Unknown Source)
      30. javax.sound.midi.MidiSystem.getDefaultDeviceWrapper(Unknown Source)
      31. javax.sound.midi.MidiSystem.getSequencer(Unknown Source)
      32. javax.sound.midi.MidiSystem.getSequencer(Unknown Source)
      32 frames
    3. Unknown
      BeatBox.main
      1. BeatBox.setUpMidi(BeatBox.java:87)
      2. BeatBox.buildGUI(BeatBox.java:77)
      3. BeatBox.main(BeatBox.java:25)
      3 frames