Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problems with loading wav-file  RSS feed

 
Sven Habermann
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wrote an applet, that should load an wav-file. The wav-file and the class-files of the applet are at the same directory of the server, but the applet cannot load it. I always get the FileNotFoundException, when I want to get out the audioformat of the file:
File file = new File("music.wav");
AudioFormat af = AudioSystem.getAudioInputStream(file).getFormat();
I don't know, why it doesn't work.
Please help me!
THANX
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!