File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
cannot find resources
Michel de Lange
Joined: Jun 08, 2006
Sep 29, 2008 04:29:00
I am sorry to trouble you folks with such a seemingly trivial problem, but I cannot work this out.
cannot find any of my resources (files). In my code, I have
fstream = this.getClass().getResourceAsStream(fileName);
in = new
never finds the file. I get:
at java.io.DataInputStream.read(Unknown Source)
at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)
My file infotext.html is in WEB-INF/classes/ and for good measure also in
Many thanks for your help,
I agree. Here's the link:
subject: cannot find resources
My applet is not being seen in its jar anymore. Please help!
problem in rediredtin GUI to IO Streams
JNLP applet to servlet communication problems -Directory Structure
Applet in JSP
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014