import java.io.FileInputStream;
import sun.audio.AudioPlayer;
import sun.audio.AudioStream;
public class Sound {
public static void main(String args[])
{
try {
FileInputStream fileau=new FileInputStream("hint.wav");
AudioStream as=new AudioStream(fileau);
AudioPlayer.player.start(as);
}
catch (Exception e) {}
}
}
解决办法:在Build Path里面把JRE System Library移除后重新添加进去,问题解决
posted on 2012-04-27 11:55
Ke 阅读(6327)
评论(0) 编辑 收藏 所属分类:
java