Hi,
I am trying to establish a Notes session from a Java program running external to Notes and I can’t even get an example from Designer 7 Help to work.
Example 3 (static NotesThread technique) from topic “Running a Java Program” bombs on the following line of code…
Session s = NotesFactory.createSession();
…with the error:
Exception in thread “main” java.lang.UnsatisfiedLinkError: C:\lotus7\notes\nlsxbe.dll: The specified procedure could not be found
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2120)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1998)
at java.lang.Runtime.loadLibrary0(Runtime.java:824)
at java.lang.System.loadLibrary(System.java:908)
at lotus.domino.NotesThread.load(Unknown Source)
at lotus.domino.NotesThread.checkLoaded(Unknown Source)
at lotus.domino.NotesThread.stermThread(Unknown Source)
at platform3.main(platform3.java:22)
I have read everyone’s tips on this forum regarding this problem and have also reviewed the Designer 7 Help topic “Running a Java program” as well as the “Java acess to the Domino Objects, Part 1” article from IBM that one forum posting linked to, but I still have a problem.
Here are some details of my configuration:
o Attempting a local connection on my PC which has Lotus Notes/Designer/Admin clients installed.
o Classpath contains Notes.jar and NCSO.jar (as well as a period for current directory):
CLASSPATH=.;C:\lotus7\notes\jvm\lib\ext\Notes.jar;C:\lotus7\notes\data\domino\java\NCSO.jar
o PATH contains C:\lotus7\notes and C:\lotus7\notes\jvm\bin (this second path is not documented but I someone on this forum suggested it).
o I registered the nlsxbe.dll file via steps contained in this post…
I must be missing some configuration step. I have tried this both from within Rational Web Developer as well via the “java” command issued at an MS-DOS command prompt.
Anyone have a suggestion?
Thanks in Advance,
Ken A Collins
New York City