JAVA的sun包问题
package声音;importjava.applet.*;importjava.io.*;importsun.audio.*;importjava.awt.*;publ...
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_jre\lib\rt.jar') 想知道是为什么 有大神能告诉我吗 展开
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_jre\lib\rt.jar') 想知道是为什么 有大神能告诉我吗 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询