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