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
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
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
problem in rediredtin GUI to IO Streams
My applet is not being seen in its jar anymore. Please help!
Applet in JSP
JNLP applet to servlet communication problems -Directory Structure
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014