• Post Reply Bookmark Topic Watch Topic
  • New Topic

sequencer = MidiSystem.getSequencer();  RSS feed

 
Ernst Jan Reuvekamp
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have installed jdk 1.7.0

and i try to run the java program BeatBox (From Headfirst Java)

I got the folowing error:

C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\hfjavafinalsample
s\chap13>java BeatBox
Exception in thread "main" 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(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at sun.misc.Launcher$ExtClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at sun.misc.Launcher$ExtClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at com.sun.media.sound.MixerSequencerProvider.getDeviceInfo(MixerSequenc
erProvider.java:28)
at javax.sound.midi.MidiSystem.getFirstDevice(Unknown Source)
at javax.sound.midi.MidiSystem.getFirstDevice(Unknown Source)
at javax.sound.midi.MidiSystem.getFirstDevice(Unknown Source)
at javax.sound.midi.MidiSystem.getDefaultDevice(Unknown Source)
at javax.sound.midi.MidiSystem.getDefaultDeviceWrapper(Unknown Source)
at javax.sound.midi.MidiSystem.getSequencer(Unknown Source)
at javax.sound.midi.MidiSystem.getSequencer(Unknown Source)
at BeatBox.setUpMidi(BeatBox.java:87)
at BeatBox.buildGUI(BeatBox.java:77)
at BeatBox.main(BeatBox.java:25)


What could be wrong?





  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!