Your problem lies with java applet restrictions. You cannot accessfiles from an applet. This would be a huge security leak if youcould. You have to sign your applet to be able to access files fromthe users computer through an applet.