我的 android 项目关于演奏钢琴音乐,所以我添加jfugue.jar
到我的项目中。我的Java代码是:
line no:29 Player player=new Player();
line no:30 player.play("C D E F G A B");
上面的代码是用按钮 onclick 监听器编写的。当我点击button
我得到RunTimeEexception
的,如下:
02-25 09:20:54.062: W/dalvikvm(846): VFY: unable to find class referenced in signature (Ljavax/sound/midi/Sequencer;)
02-25 09:20:54.082: I/dalvikvm(846): Could not find method javax.sound.midi.MidiSystem.getSequencer, referenced from method org.jfugue.Player.<init>
02-25 09:20:54.082: W/dalvikvm(846): VFY: unable to resolve static method 3600: Ljavax/sound/midi/MidiSystem;.getSequencer (Z)Ljavax/sound/midi/Sequencer;
02-25 09:20:54.082: D/dalvikvm(846): VFY: replacing opcode 0x71 at 0x0011
02-25 09:20:54.092: W/dalvikvm(846): VFY: unable to find exception handler at addr 0x1c
02-25 09:20:54.102: W/dalvikvm(846): VFY: rejected Lorg/jfugue/Player;.<init> (Z)V
02-25 09:20:54.102: W/dalvikvm(846): Verifier rejected class Lorg/jfugue/Player;
02-25 09:20:54.122: D/AndroidRuntime(846): Shutting down VM
02-25 09:20:54.122: W/dalvikvm(846): threadid=1: thread exiting with uncaught exception (group=0x40a70930)
02-25 09:20:54.152: E/AndroidRuntime(846): FATAL EXCEPTION: main
02-25 09:20:54.152: E/AndroidRuntime(846): java.lang.VerifyError: org/jfugue/Player
02-25 09:20:54.152: E/AndroidRuntime(846): at com.example.xyz.MainActivity$1.onClick(MainActivity.java:29)