问题描述
- JAVA的sun包问题?望解决 不甚感激
-
package 声音;
import java.applet.*;
import java.io.*;
import sun.audio.*;
import java.awt.*;
public class view{
public static void main(String args[]){
try {FileInputStream fileau=new FileInputStream("sloop.au");
AudioStream as=new AudioStream(fileau);
AudioPlayer.player.start(as);
} catch (Exception e) {
System.out.println(e);
}}
}
以上是源码
AudioStream 提示的问题是 Access restriction: The type 'AudioStream' is not API (restriction on required library 'D:java_jrelibrt.jar')
有大牛能解决吗
解决方案
http://www.blogjava.net/keweibo/articles/376754.html
时间: 2024-11-09 00:17:15