Open nsf file with Java

Good Afternoon,I have a question, I need to open a nsf file that is in my computer (not is a domino server) with Java, I have installed Lotus Notes Client and Lotus Domino Designer in my computer, I have the Notes.jar library imported in my netbeans. But I only need to open the nsf file and access to the documents that are in the database.

Can anyone help me please!!!

Subject: Open nsf file with Java

import lotus.domino.*;class platform extends NotesThread

{

public static void main(String argv)

{

    platform t = new platform();

    t.start();

}

public void runNotes()

{

try

  {

    Session s = NotesFactory.createSession();

Database db = session.getDatabase(“”, “DB_NAME”);

  DocumentCollection dc = db.getAllDocuments();

  Document doc = dc.getFirstDocument();

  while (doc != null) {

  //YOURCODE....

    doc = dc.getNextDocument(); }

  }

catch (Exception e)

  {

    e.printStackTrace();

  }

}

}