2
votes

I'm trying to read the IBM notes email on MacOS High Siera. When I run my java program, it's giving me this error:

Exception in thread "Thread-0" java.lang.UnsatisfiedLinkError: no lsxbe in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1886) at java.lang.Runtime.loadLibrary0(Runtime.java:849) at java.lang.System.loadLibrary(System.java:1088) at lotus.domino.NotesThread.load(Unknown Source) at lotus.domino.NotesThread.checkLoaded(Unknown Source) at lotus.domino.NotesThread.initThread(Unknown Source) at lotus.domino.NotesThread.run(Unknown Source)

On Windows machine of my colleague, he just includes notes embedded Jvm and it works, but on MacOS there is no embedded Jvm and the Jvm folder has only three jars inside the ./jvm/lib/ext/ directory:

njempcl.jar
Notes.jar
websvc.jar

By including these three files in the eclipse project, I am not getting any compile time errors anymore.

2
I am having a similar issue. I have added these ibm.com/support/knowledgecenter/en/SSKTMJ_9.0.1/admin/… to the PATH on my mac, but still no success. - John

2 Answers

0
votes

You need to set the environment variables DYLD_LIBRARY_PATH and DYLD_LIBRARY_PATH to the location inside your app. E.g.

#!/bin/bash
# Run Java app with Domino
export DYLD_LIBRARY_PATH="/Applications/HCL Notes.app/Contents/MacOS"
export LD_LIBRARY_PATH="/Applications/HCL Notes.app/Contents/MacOS"
java -jar yourapp.jar

Hope that helps

0
votes

I added the following jars to my project from notes installation directory:

  • njempcl.jar
  • Notes.jar
  • websvc.jar

enter image description here