Implementing JAR files into Domino

I have recently come across a JAR file that contains all the classes I need to perform a particular task within a web application I have written; however, I can’t seem to implement the JAR file. When Designer is open and an agent is in edit mode, in on the left hand side of the screen you find a hierarchy of available domino, java, corba and xml packages that can be used within that agent. I want the contents of this new JAR file to show up there. How can I do this?? Thanks ahead of time.

Subject: Implementing JAR files into Domino

I am rather sure that it is not possible to show them in that menu.

To access functions available in your archive into an agent, you can include JAR archive as a part of your agent using “Edit Project”. Or you can put JARs in “\jvm\lib\ext” folder of Notes.

In both cases you must know methods and functions parameters because you do not have type-ahead.

Subject: RE: Implementing JAR files into Domino

Hi,I have created a java agent in Notes Client that uses external jar files. I have placed the .jar files in \lib\ext\ directory of Notes Installation folder. I still get the error

"java.lang.NoClassDefFoundError: "

I noted from the post that jar files can be attached to the agent. Am not able to find how to do that.

Can you pls. guide me.

Thanks.

Subject: RE: Implementing JAR files into Domino

In R6 Designer client when you create/Edit a Java agent, there is a button “Edit Project” located at the bottom of the Code panel. When you click it you can choose what files you want to include into your Java agent.

Other buttons near “Edit Project” are: “New Class”, “Export”, “Compile…”.

Subject: RE: Implementing JAR files into Domino

Thanks for the help Andrei. I figured out how to do it. Since I don’t like when people neglect posting their solution once they figured out how to do it, here is what I did:

I actually found two ways to do it:

First way) As Andrei suggested, I put extracted the JAR file contents into the jvm/lib/ext/ folder. Then, I clicked the Edit Project button and included the files I needed for my project.

Second way) Since the JAR file contents were already extracted, I was able to reference them using an import statement such as

import com.junit.core.*;

This also allowed me to use the methods under the com/junit/core/ directory.

Thanks for the help and I hope this can come in use to other people having the same question.