The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

import-bot (20211) [Avatar] Offline
#1
[Originally posted by rsimo]

I've compiled following code (very very similar to example 24.1)
-----------------------------------------
import lotus.domino.*;
public class EsempioDomino implements Runnable{
public static void main (String [] args) {
try{
EsempioDomino es = new EsempioDomino();
NotesThread t = new NotesThread ((Runnable)es);
t.start();
} catch (Exception e){
e.printStackTrace();
}
}
public void run() {
try {
Session s = NotesFactory.createSession("");
if (s != null) {
Database db = s.getDatabase ("", "names.nsf");
if (db != null) {
DocumentCollection dc = db.getAllDocuments();
Document doc = null;
for (int x = 1; x <dc.getCount(); x++){>
doc = dc.getNthDocument(x);
System.out.println (doc.getUniversalID());
doc.recycle();
}
doc.recycle();
dc.recycle();
db.recycle();
}
else {
System.out.println("Error - accessing database");
}
s.recycle();
}
else {
System.out.println("Error - session could not be established");
}
} catch (NotesException n ) {
n.printStackTrace();
}
}
}
----------------------------------
Compiling was successful (classpath has both notes and ncso), the program goes
only from the rrot directory of the designer (R. 5.0.6a) c:domino
In the other case I've the following:

CsmilieominodataAppliJavaDomino>java EsempioDomino
java.lang.UnsatisfiedLinkError: no nlsxbe in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at lotus.domino.NotesThread.load(NotesThread.java:281)
at lotus.domino.NotesThread.checkLoaded(NotesThread.java:301)
at lotus.domino.NotesThread.initThread(NotesThread.java:139)
at lotus.domino.NotesThread.run(NotesThread.java:197)
Thanx in advance
Simon