Hi,
I have an agent written in LotusScript. It uses LS2J to call some Java code. In the Java code I’m trying to read a properties file (using getClass().getClassLoader().getResourceAsStream(“Resources/foo.properties”)).
Normally I’d include the properties file in a Resources folder in the jar file (as specified by the path).
In junits, and in a java agent this works fine, but when I put the same jar file in the Script Library, then the call returns null.
I’ve tried copying the properties file to Res/Resources/foo.properties in the Script Library, but still the same.
Can anybody tell me how I can load a properties file in Java when the code is located in a Script Library?
Thanks,
Neil