Michal Kostrzewa (m.kostrzewa@pentacomp.com.pl) Special thanks to (text taken from)

Revision history

Abstract

This document describes briefly how to develop the JMeter project with Eclipse IDE. Eclipse is a very powerful development environment with following features:

Eclipse is available for download for different platforms at http://www.eclipse.org

Multiple Workspaces

Most Eclipse formatting settings are managed at the workspace level. If you work on other projects in addition to JMeter, you probably don't want the JMeter formatting to apply to your other projects. One way to manage this is to set up multiple Eclipse workspaces – one for JMeter, and one (or more) for other projects. To use multiple workspaces, simply start eclipse with the "-data" parameter:

eclipse -data c:\workspace_JMeter

You could also create a batch file, shell script, or Windows shortcut to automatically specify the workspace so you don't have to type it each time.

Setting up JMeter + Eclipse

I assume you downloaded Eclipse IDE and have it working.

Accessing CVS

  1. Open the CVS perspective with and buttons 2. Invoke the popup menu and select "New"|"repository location" 3. Fill appropriate entries as pictured below, entering anoncvs as a password.: 4. You should see the apache cvs tree as pictured below. Unfold HEAD, select jakarta-JMeter and then select "Check Out as ..." from the pop-up menu 5. Select "JAVA project", and give a name for the project in next dialogs. I will assume I it is is named jmeter-pserver for the rest of this document. 6. Wait for the cvs checkout to complete

Setting up paths

After the checkout you'll see something like this:

It means you have the source paths improperly installed. To set them up, do the following:

  1. Close this project 2. Copy the jmeter-pserver/eclipse.classpath file to jmeter-pserver/.classpath (you will have to overwrite the jmeter-pserver/.classpath file eclipse created for you 3. Open the project again 4. Now the source folders and jar libraries are mounted properly

NOTE: There are some optional libraries JMeter depends on. This setup defines exclusion filters for all the classes that need optional libraries (you would get compiler errors from Eclipse otherwise). Remove these exclusion filters if you have optional libraries installed. For further details refer to jmeter-pserver/eclipse.readme)