sissi49
sissi49

Reputation: 135

openntf domino api don't work

I have domino designer 9.0.1

I want to use the openntf domino api but i can't find this file : com.ibm.domino.xsp.module.nsf.NotesContext;

I install the org.openntf.domino.jar of the OpenNTF Domino API M4.1 it find it

I install org.openntf.domino.xsp.update.zip of the org.openntf.domino API M4.5

but i can't do that :

    package test;

import lotus.domino.NotesException;
import org.openntf.domino.Session;
import org.openntf.domino.utils.Factory;
import com.ibm.domino.xsp.module.nsf.NotesContext; <= CAN'T FIND

public class UtilEssai {

    public String essaiMethode() throws NotesException {
          String texte = null;      
          Session session = Factory.fromLotus(NotesContext.getCurrent().getCurrentSession(), Session.class, null);
          texte = "Bonjour " + session.getCommonUserName();
          return texte;
    }

how i install and more how find this file ?? Could you help me please ?

Upvotes: 0

Views: 777

Answers (1)

Martin Jinoch
Martin Jinoch

Reputation: 308

Do not mix jar and plugin versions. Plugin itself should be enough to work with the API.

Upvotes: 1

Related Questions