Register / Login
File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
cannot find resources
Michel de Lange
posted 7 years ago
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,
It is sorta covered in the
JavaRanch Style Guide
JNLP applet to servlet communication problems -Directory Structure
problem in rediredtin GUI to IO Streams
Applet in JSP
My applet is not being seen in its jar anymore. Please help!