| 
									
										
										
										
											2007-03-08 08:48:47 +08:00
										 |  |  | Warning: The Eclipse.classpath file has been tested with Eclipse 3.2. | 
					
						
							|  |  |  | It may not work with other versions. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-12-30 09:07:33 +08:00
										 |  |  | Eclipse.classpath | 
					
						
							|  |  |  | ----------------- | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | The file eclipse.classpath is intended as a starter .classpath file  | 
					
						
							| 
									
										
										
										
											2007-03-08 08:48:47 +08:00
										 |  |  | for building JMeter using Eclipse version 3.   | 
					
						
							| 
									
										
										
										
											2003-12-30 09:07:33 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | It has exclusion filters for all the source files that depend on optional jars. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | The optional jars are: | 
					
						
							|  |  |  | javamail (available from java.sun.com) | 
					
						
							|  |  |  | Two jars are required for javamail: | 
					
						
							|  |  |  | mail.jar - http://java.sun.com/products/javamail/downloads/index.html | 
					
						
							|  |  |  | activation.jar - http://java.sun.com/products/javabeans/glasgow/jaf.html | 
					
						
							| 
									
										
										
										
											2007-03-05 04:17:25 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-12-30 09:07:33 +08:00
										 |  |  | beanshell - see http://www.beansehll.org/ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-03-05 04:17:25 +08:00
										 |  |  | jms* - needed for the JMS samplers | 
					
						
							| 
									
										
										
										
											2007-03-08 08:48:47 +08:00
										 |  |  | one implementation is http://activemq.apache.org/ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | The usage of the jars is as follows: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | core | 
					
						
							|  |  |  | ---- | 
					
						
							|  |  |  | org/apache/jmeter/util/keystore/PKCS12KeyStore.java - requires iaik | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | components | 
					
						
							|  |  |  | ------------ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | org/apache/jmeter/visualizers/MailerVisualizer.java - requires javamail | 
					
						
							|  |  |  | org/apache/jmeter/reporters/MailerModel.java - requires javamail | 
					
						
							|  |  |  | org/apache/jmeter/reporters/MailerResultCollector.java - requires javamail | 
					
						
							|  |  |  | org/apache/jmeter/assertions/**/BeanShell*.java - requires beanshell | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | http | 
					
						
							|  |  |  | ---- | 
					
						
							|  |  |  | org/apache/jmeter/protocol/http/sampler/WebServiceSampler.java - requires javamail | 
					
						
							|  |  |  | org/apache/jmeter/protocol/http/control/gui/WebServiceSamplerGui.java - requires javamail | 
					
						
							| 
									
										
										
										
											2003-12-30 09:07:33 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-03-08 08:48:47 +08:00
										 |  |  | java | 
					
						
							|  |  |  | ---- | 
					
						
							|  |  |  | org/apache/jmeter/protocol/java/**/BeanShell*.java - requires beanshell | 
					
						
							|  |  |  | org/apache/jmeter/protocol/java/**/BSF*.java - requires bsf | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | jms | 
					
						
							|  |  |  | --- | 
					
						
							|  |  |  | org/apache/jmeter/protocol/jms/** - requires jms | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | jndi | 
					
						
							|  |  |  | ---- | 
					
						
							|  |  |  | org/apache/jmeter/protocol/jndi/** - requires jndi | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | mail | 
					
						
							|  |  |  | ---- | 
					
						
							|  |  |  | org/apache/jmeter/protocol/mail/** - requires javamail | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Before use, delete or disable the exclusion filters that are not required. | 
					
						
							| 
									
										
										
										
											2003-12-30 09:07:33 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | Unlike Ant, Eclipse does not support conditional excludes. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Note that Eclipse does not handle RMI compilations, nor is it easy to use for creating | 
					
						
							|  |  |  | jar files. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | However, it is easy to use Eclipse to run Ant. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | The following targets may prove useful: | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-03-08 08:48:47 +08:00
										 |  |  |   compile-rmi - compiles the RMI files that Eclipse ignores | 
					
						
							|  |  |  |   package-only - creates the jars | 
					
						
							|  |  |  |   package - compiles everything and then packages it | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Launching from Eclipse | 
					
						
							|  |  |  | ---------------------- | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | This launch setup does not read the class files built by Eclipse, but | 
					
						
							|  |  |  | instead needs the jar file built by Ant.  These instructions assume | 
					
						
							|  |  |  | you checked out the JMeter code as an Eclipse project named "jmeter". | 
					
						
							|  |  |  | If you used something else, adjust accordingly. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 1. Build the JMeter jar file using ant.  Find the build.xml file in | 
					
						
							|  |  |  | the project, right click on it, and click "Run As --> Ant Build". | 
					
						
							|  |  |  | When that is done, right click on the bin folder and pick "Refresh". | 
					
						
							|  |  |  | You should now see the file "ApacheJMeter.jar". | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 2. Create a new Java Application launch configuration.   | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | On the Main tab, enter the following as the main class: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   org.apache.jmeter.NewDriver | 
					
						
							|  |  |  |    | 
					
						
							|  |  |  | On the Arguments tab, in the Working Directory area, pick the radio | 
					
						
							|  |  |  | button next to "Other" and enter the following in the text box: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   ${workspace_loc:jmeter}\bin | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Note: a back slash is appropriate for Windows; Linux needs a forward slash. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | On the Classpath tab, under User Entries, remove the only entry | 
					
						
							|  |  |  | "jmeter (default classpath)".  Click on User Entries, click on the Add | 
					
						
							|  |  |  | Jars button, then navigate to the file bin/ApacheJMeter.jar you built | 
					
						
							|  |  |  | in step 1.  Pick it, click Ok. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | On the Source tab, click the Add button.  In the dialog "Add Source" | 
					
						
							|  |  |  | that appears, pick the item in the list "Java Project", click OK.  In | 
					
						
							|  |  |  | the dialog "Project Selection" that appears next, put a check next to | 
					
						
							|  |  |  | the JMeter project, click OK. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Even though this configuration doesn't allow the instant change-run-test  | 
					
						
							|  |  |  | cycles that are possible in Eclipse, at least this configuration allows | 
					
						
							|  |  |  | you to set breakpoints on code in the Eclipse java editor etc. | 
					
						
							| 
									
										
										
										
											2003-12-30 09:07:33 +08:00
										 |  |  | 
 |