developerWorks  >  Lotus  >  Forums & community  >  Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum

developerWorks




getResourceAsStream() and LS2J
Aldrin Rasdas 07/17/2007 12:30 PM
Notes Client 6.5.6 All Platforms


This is a repost... and so far, no one answered, and I have not found a solution:

Why getResourceAsStream (of Class or ClassLoader) always returns NULL when a java class is accessed using LS2J?

The resource being accessed (i.e. JPEG, GIF, etc.) is embedded in the jar file.

When this class is accessed from a java agent, it goes fine.

By the way, the jar file containing the said class is embedded in a Java Library.

However, if the jar file is included in jvm\lib\ext of Notes program folder (and removed from the Java Library), it works fine with LS2J.

Need help desperately!

Go back