Hi,using Notes.jar with code:
import lotus.domino.*;
public class NotesTest {
public static void main(String[] args) {
NotesTest test = new NotesTest();
test.NotesMain();
}
public void NotesMain4() {
try {
NotesThread.sinitThread();
Session s = NotesFactory.createSession();
DbDirectory dir = s.getDbDirectory(null);
String dbname = "";
Database db = dir.getFirstDatabase(DbDirectory.DATABASE);
// gives me nothing
while (db != null)
{
System.out.println("Title:\t\t" + db.getTitle());
System.out.println("Server:\t\t" + db.getServer());
System.out.println("File path:\t\t" + db.getFilePath());
db = dir.getNextDatabase();
}
} catch(Exception e) {
e.printStackTrace();
}
finally {
NotesThread.stermThread();
}
}
}
This code gives all local nsf files on machine for a colleague of mine but nothing for me. I have a similar number of local databases showing in my notes client as my colleague. I have the same version of notes and notes.jar.
I assume this is a notes setting problem?
Ta,
Mark.