# Notes initialization failure - err 421
Running a Java Notes app from the command line, gave me the error:
java.lang.Exception: Notes initialization failure - err 421
at lotus.domino.NotesThread.NnotesInitThread(Native Method)
at lotus.domino.NotesThread.sinitThread(NotesThread.java:184)Problem was related to my notes.ini not being in the normal place (ie. Notes program directory). I dropped a notes.ini into place and happy happy. I tried putting notes.ini elsewhere accessible by my PATH environment variable, and it didn't seem to work - so the native methods called by the Java API seem to look in the same directory, end of story.
Bit of a pain, that, especially if you juggle clients and have differently-named and stored ini files for your different clients. I know the C++ API allows you to specify the location of the notes.ini variable to use. It would be nice if the Java API allowed one to do the same thing.
(also: link to the sole other post about it on the ND6 forum.)
File under: notes/domino, java : {2004.09.24 16:35}