帮改一下程序
import java.awt.*;
import java.applet.*;
public class media extends Applet {
public void init()
{ AudioClip mp=getAudioClip(getCodeBase( "e:/source/diajia.mp3 "));
mp.play();
}
}
------解决方案--------------------Applet不可以播放mp3格式吧,换别的吧au,Midi,rfm都可以如:
import java.awt.*;
import java.applet.*;
public class media extends Applet {
public void init()
{ AudioClip mp=getAudioClip(getCodeBase(), "diajia.au ");
mp.play();
}
}