Notes initialization failure - err 421(When I was running examples in the "HELP")

I got java.lang.Exception: Notes initialization failure - err 421

    at lotus.domino.NotesThread.NnotesInitThread(Native Method)

    at lotus.domino.NotesThread.initThread(NotesThread.java:153)

    at lotus.domino.NotesThread.run(NotesThread.java:209)

when I was trying to run examples “Examples: Accessing database properties” of the “HELP” of Lotus Domino Designer 6.5.

I tried to access a Domino Server using Java standalone application through 3 ways:extending NotesThread and implementing Runnable interface.

Unfortunately, I got same error information for both ways.

I’m strongly suspecting there can be something wrong with environment configuration or around since the code was exactly from the official help documentation of Lotus domino designer 6.5 and the error happened even before running anything in a run() method.

Anyone can help? Thank you in advance.

Subject: Notes initialization failure - err 421(When I was running examples in the “HELP”)

I had the same problem, and I fixed it by putting a notes.ini file in the Notes program directory (I use multiple clients and my notes.ini files are normally stored elsewhere on my file system).

Subject: RE: Notes initialization failure - err 421(When I was running examples in the “HELP”)

Thank you Colin for your post. It helped me to resolve this problem on Domino partitioned server. I put path to notes.ini into BAT file which starts Java program and all worked fine. It is also possible to put path into “PATH” Environment variable on computer (My Computer icon-Properties-Advanced).

What I used in BAT file:

SET PATH=%PATH%;c:\notescustomized