On 14 October 2010 19:05, Kurt Wiseman <[email protected]> wrote: > I understand that I need a .jmx file when running in nodisplay mode however, > the error that shows up before that is: > >>>>> java.lang.Throwable: Could not access /usr/share/jmeter/lib/junit >>>>> at org.apache.jmeter.NewDriver.<clinit>(NewDriver.java:96) > > But giving a test plan seems to run ok even with the error?
I've no idea what the Ubuntu JMeter package contains - it's not an Apache product. Only Ubuntu can resolve issues with it. Just download the JMeter binary package from an ASF mirror, unpack it, and you should be good to go. >> sudo jmeter -n -t /usr/share/jmeter/printable_docs/demos/SimpleTestPlan.jmx >> [warning] /usr/bin/jmeter: Unable to locate commons-net in /usr/share/java >> [warning] /usr/bin/jmeter: Unable to locate jboss-j2ee in /usr/share/java >> [warning] /usr/bin/jmeter: Unable to locate jdom1 in /usr/share/java >> [warning] /usr/bin/jmeter: Unable to locate junit in /usr/share/java >> [warning] /usr/bin/jmeter: No JAVA_CMD set for run_java, falling back to >> JAVA_CMD = java >> java.lang.Throwable: Could not access /usr/share/jmeter/lib/junit >> at org.apache.jmeter.NewDriver.<clinit>(NewDriver.java:96) >> Created the tree successfully using >> /usr/share/jmeter/printable_docs/demos/SimpleTestPlan.jmx >> Starting the test @ Thu Oct 14 11:04:02 PDT 2010 (1287079442784) >> Waiting for possible shutdown message on port 4445 >> Tidying up ... @ Thu Oct 14 11:04:07 PDT 2010 (1287079447136) >> ... end of run > > > On Oct 13, 2010, at 5:15 PM, Milamber wrote: > >> Hello, >> >> Le 13/10/2010 23:37, Kurt Wiseman a ecrit : >> [snip] >>>> The following extra packages will be installed: >>>> [snip] >>>> openjdk-6-jre openjdk-6-jre-headless openjdk-6-jre-lib rhino >>>> ttf-dejavu-extra >>>> >> >> JMeter works better with sun-java6-jdk (partner repository) >> >>> [snip] >>> and here's what I get now: >>> >>> >>>> jmeter >>>> [Snip] >>>> 2010/10/13 15:51:43 WARN - jmeter.gui.action.ActionRouter: >>>> java.awt.HeadlessException: >>>> No X11 DISPLAY variable was set, but this program performed an operation >>>> which requires it. >>>> 2010/10/13 15:51:43 FATAL - jmeter.JMeter: An error occurred: >>>> java.awt.HeadlessException: >>>> No X11 DISPLAY variable was set, but this program performed an operation >>>> which requires it. >>>> >>>> >> You try to launch JMeter on a console (no X11 started)? >> By default, JMeter (which is a Java swing application) need a X11 server. >> >>>> An error occurred: >>>> No X11 DISPLAY variable was set, but this program performed an operation >>>> which requires it. >>>> >>> If I try sudo jmeter I get: >>> >>>> sudo jmeter >>>> [snip]No X11 DISPLAY variable was set, but this program performed an >>>> operation which requires it. >>>> >>> >> >> Same X11 problem >> >> >>> Finally, trying for nodisplay I get: >>> >>> >>>> sudo jmeter -n >>>> [sudo] password for kwiseman: >>>> [warning] /usr/bin/jmeter: Unable to locate commons-net in /usr/share/java >>>> [warning] /usr/bin/jmeter: Unable to locate jboss-j2ee in /usr/share/java >>>> [warning] /usr/bin/jmeter: Unable to locate jdom1 in /usr/share/java >>>> [warning] /usr/bin/jmeter: Unable to locate junit in /usr/share/java >>>> [warning] /usr/bin/jmeter: No JAVA_CMD set for run_java, falling back to >>>> JAVA_CMD = java >>>> java.lang.Throwable: Could not access /usr/share/jmeter/lib/junit >>>> at org.apache.jmeter.NewDriver.<clinit>(NewDriver.java:96) >>>> Non-GUI runs require a test plan >>>> >>> >> >> Message says : the non-gui mode need a test plan (a JMeter script : file >> with .jmx extension) >> >> You can : >> 1/ use a X11 env (or a windows) to create a JMeter script >> 2/ use the non-gui mode to run a load test with your script >> >> You can read: >> http://jakarta.apache.org/jmeter/usermanual/get-started.html >> >> >> Milamber >> >>> >>> Any help would be greatly appreciated. >>> >>> Thanks, >>> Kurt >>> >>> >>> >>> >>> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

