Using Lotus Notes with Eclipse

In the article “Using Lotus Notes with Eclipse to manage and run your Java programs”, when you entered the Java I find two errors on Session and AgentContext, that read:

“Session cannot be resolved or is not a type” and,

“AgentContext cannot be resolved or is not a type”.

Any ideas?

Regards

Rolf Pfotenhauer

Subject: Using Lotus Notes with Eclipse

Sounds like you are using (or should be using) Bob Balaban’s “Two Headed Monster”. Go to the Looseleaf Software site to download his article. The environment is WSAD, but it’s just about the same as Eclipse (being based on Eclipse); take a look at the twin entry points main() and NotesMain().

Subject: RE: Using Lotus Notes with Eclipse

I was referring to trhe article on the home page of Lotus Domino Domain i.e.

I could’nt find the article “Two Headed Monster”.

Regards

Subject: RE: Using Lotus Notes with Eclipse

have a look at this link:looseleaf.net - This website is for sale! - looseleaf Resources and Information.

Subject: RE: Using Lotus Notes with Eclipse

Did you go to Looseleaf? Or read the articles in Lotus Advisor?

Subject: Using Lotus Notes with Eclipse

hi,

where is the article?

would be helpful to know what u r talking about :slight_smile:

i think u did not properly include the notes.jar or something else giving u access to the notes-java-classes.

then eclipse does not know what an agent is etc.

alex

Subject: Using Lotus Notes with Eclipse

Rolf, This is the code for JavaAgent.java , and it’s compiling OK. It sounds like "import lotus.domino.* is mising in your code.

/*

  • Created on 04-oct-2004

  • TODO To change the template for this generated file go to

  • Window - Preferences - Java - Code Style - Code Templates

*/

package com.ibm.NotesJava.agents;

import lotus.domino.*;

/**

  • @author Miguel Angel

  • TODO To change the template for this generated type comment go to

  • Window - Preferences - Java - Code Style - Code Templates

*/

public class JavaAgent extends AgentBase {

public void NotesMain() {



	try {

		Session session = getSession();

		AgentContext agentContext = session.getAgentContext();

		System.out.print("Mis modificaciones dd");



		// (Your code goes here) 



	} catch(Exception e) {

		e.printStackTrace();

	}

}

}

Miguel Angel