3rd party Java library location

Where should a 3rd Java party library be placed on AIX?In the Domino area or elsewhere?

(It doesn’t seem to be working in the Domino area, but we’ve not restarted.)

Is a server restart necessary?

Collin (enjoys learing but it is a struggle) Brendemuehl

KC8TKA

Subject: 3rd party Java library location

Collin,

You can put JAR files anywhere, but you have to add/update the JavaUserClasses parameter in notes.ini to tell it where to look. JavaUserClasses is like the standard CLASSPATH statement – you have to spell out the whole path to each JAR file and you will run into problems if you go over the limit (I am guessing 255 characters?). It is VERY EASY to go over the limit. I wasn’t able to point to 9 JAR files for MQSeries without exceeding the limit.

The way you can shrink the size of your JavaUserClasses parameter is to put all the external JAR files in the same directory as the Notes program itself (not the data folder) and then you can just specify the JAR file names by themselves, no full path required.

Another approach is to import the JAR files into the project if you’ve got a Java agent that needs them, but that has been problematic for me, resulting in intermittent NoClassDefFound errors.

Ken

Subject: RE: 3rd party Java library location

#1 Our notes.ini has been updated accordingly.JavaUserClasses=/notes03data/nshra008/domino/servlet/fbsrv16.jar;/notes03data/nshra008/notes.jar;/notes03data/nshra008/domino/java/pdflib.jar

Still under 255 characters. pdflib.jar is the addition.

#2 Server rebooted.

#3 But in the log still …

04/26/2005 09:07:22 HTTP JVM: java.lang.NoClassDefFoundError: com/pdflib/pdflib

Subject: RE: 3rd party Java library location

Make sure JavaUserClasses line isn’t the last in the Notes.ini, and most importatly don’t forget to add a magic word at the end of JavaUserClasses “;pls” :slight_smile: or if you really upset try “;fkit”

I am serious. Domino doesn’t take the last jar from this string unless you have something else after it.

Good luck.

Subject: RE: 3rd party Java library location

Collin,

I believe the separator in AIX is a colon, not a semicolon. Try that.

Ken