Hi i want to play a tune in
java application the code in have
written for is...
<pre>
import sun.audio.*;
import java.io.*;
class au
{
public static void mian(
String args[]) throws Exception
{
InputStream in = new FileInputStream("D:\\jdk1.3\\mb\\bottle-open.wav");
AudioStream as = new AudioStream(in);
AudioPlayer.player.start(as);
}
}
</pre>
it's compling successfully but giving runtime error..
Exception in
thread "main" java.lang.NoSuchMethodError: main
what's wrong ??
Tnax in advance..
bhupendra