// TODO figure out what the lsxbe error is all about
NotesClientHandler npr = new NotesClientHandler();
// Make use of Notes API to read some Lotus Notes properties.
try
{
npr.start();
npr.join();
}
catch (Exception e)
{
log.writeToLog(new Date(), this.getClass(), e.toString());
try
{
throw new Exception(e);
}
catch (Exception e1)
{
log.writeToLog(new Date(), this.getClass(), e1.toString());
e1.printStackTrace();
}
}
NotesClientHandler extends NotesThread and here’s how the runNotes method looks like:
public void runNotes() {
mailLocations = new ArrayList(2);
try {
Session s = NotesFactory.createSession();
if (password != null && password.length() != 0) {
s = NotesFactory.createSessionWithFullAccess(password);
}
String userName = s.getUserName();
Name nameObj = s.getUserNameObject();
userName = nameObj.getCanonical();
}
catch (NotesException e) {
e.printStackTrace();
}
}
Stepping through the code, the exception is generated at npr.join().
I had to create a file (~/.profile) and in there define the DYLD_LIBRARY_PATH. Also, I had to close Notes and ensure that I was using Java 1.5.0. Once I met all these requirements, I got it to work. More info here: Socialize Me: Atlas for the Mac Is Here