Problem with JavaUserClasses in notes.ini for R6

I have a problem with JavaUserClasses in notes.ini for R6.

I have added some classes without any problem

JavaUserClasses=C:\Lotus\Domino\Data\domino\java\itext-0.96.jar;

C:\Lotus\Domino\Data\domino\java\jdom.jar;

C:\Lotus\Domino\Data\domino\java\log4j.jar;

C:\Lotus\Domino\Data\domino\java\Tidy.jar;

C:\Lotus\Domino\Data\domino\java\xml_util.jar

but I need some Oracle jdbc classes exactly the classes12.zip so I added them to JavaUserClasses:

JavaUserClasses=C:\Lotus\Domino\Data\domino\java\itext-0.96.jar;

C:\Lotus\Domino\Data\domino\java\jdom.jar;

C:\Lotus\Domino\Data\domino\java\log4j.jar;

C:\Lotus\Domino\Data\domino\java\Tidy.jar;

C:\Lotus\Domino\Data\domino\java\xml_util.jar;

C:\oracle\ora81\jdbc\lib\classes.zip

but lotus doesn’t find it, so i put these classes in the directory of notes

JavaUserClasses=C:\Lotus\Domino\Data\domino\java\itext-0.96.jar;

C:\Lotus\Domino\Data\domino\java\jdom.jar;

C:\Lotus\Domino\Data\domino\java\log4j.jar;

C:\Lotus\Domino\Data\domino\java\Tidy.jar;

C:\Lotus\Domino\Data\domino\java\xml_util.jar;

C:\Lotus\Domino\Data\domino\java\classes12.jar

and i get the same answer

What can I do?

I can’t understand why lotus can find the 3 first and not the last one

thanks

Subject: problem with JavaUserClasses in notes.ini for R6.

Did you find a workaround ? Regards

Subject: RE: problem with JavaUserClasses in notes.ini for R6.

I suspect you both have the same problem in that there’s a 256 byte limit on single Notes.ini variables.

Subject: RE: problem with JavaUserClasses in notes.ini for R6.

Hello

We have reached the 256 characters limit too in the notes.ini…

There is a document number 1159321 in the knowledge database, but I don’t manage to use the workaround it.

Do you manage to use it ???

Thank you !

Gerald

Gerald.goupil@desjardins.com

Subject: RE: problem with JavaUserClasses in notes.ini for R6.

The solution described in document 1159321 worked perfectly for me. We are on 6.5.0.

I put one jar file path per line.

Brendan

Subject: problem with JavaUserClasses in notes.ini for R6.

Did you try setting the classpath environment variable?

  • Brownie

Subject: problem with JavaUserClasses in notes.ini for R6.

As I recall there is a limit to the length of the JavaUserClasses. You are exceeding it.

Subject: problem with JavaUserClasses in notes.ini for R6.

I don’t know whether you allready found a workaround for this, but I used another one than the ones allready discribed. In stead of using the full path to the jar files, like C:\Lotus\Domino\Data\domino\java\jt400.jar, I placed in the ini variable only C:\Lotus\Domino\Data\domino\java . What I did next was to extract the jt400.jar in that folder. After extraction you’re “jar” folder should look like this :

C:\Lotus\Domino\Data\domino\java\com\ibm\as400\access … With all classes extracted in the appropriate folders.

This has as a result that you can extract all needed jar files in that folder. This way you have only to declare one folder in the notes.ini which should help you with the limit.

Subject: problem with JavaUserClasses in notes.ini for R6.

Instead of dumping your package references in the notes.ini file, why not include them as part of your Java agent “project”? That way, (1) you avoid the JavaUserClasses variable and its limitations, and (2) anyone else picking up your Java will be able to edit and re-compile it without having to first obtain the relevant packages and add them to their machine’s ini file / classpath.

Just a thought…