{"id":782,"date":"2016-04-16T12:26:56","date_gmt":"2016-04-16T12:26:56","guid":{"rendered":"https:\/\/loadfocus.com\/blog\/?p=782"},"modified":"2023-06-19T09:15:01","modified_gmt":"2023-06-19T09:15:01","slug":"how-to-add-jmeter-to-the-path-environment-variable-on-mac-os-x","status":"publish","type":"post","link":"https:\/\/loadfocus.com\/blog\/2016\/04\/how-to-add-jmeter-to-the-path-environment-variable-on-mac-os-x","title":{"rendered":"How to Add JMeter to the PATH Environment Variable On Mac OS X"},"content":{"rendered":"<span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\"><\/span> <span class=\"rt-time\"> &lt; 1<\/span> <span class=\"rt-label rt-postfix\">minute read<\/span><\/span><p class=\"lead\">In case you want to easily start <strong>Apache JMeter<\/strong> load testing tool on your <strong>MAC OS<\/strong>, here some things which you help you get started.<\/p>\n<p>Once you downloaded Apache JMeter, just go to the <strong>PATH<\/strong> where you&#8217;ve dowloaded it. For example, I&#8217;ve downloaded JMeter in my Downloads folder. Here are\u00a0full details on how to <a href=\"https:\/\/loadfocus.com\/blog\/2016\/04\/13\/how-to-use-apache-jmeter-to-load-test-a-web-server\/\">run your first load test with JMeter<\/a>.<\/p>\n<p>Steps to Add JMeter to the PATH environment variable:<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li>Open <strong>Command-Line<\/strong> (Terminal)<\/li>\n<li>Type <strong>jmeter<\/strong> and press <strong>Enter<\/strong><\/li>\n<li>If <strong>JMeter<\/strong> is not in the <strong>PATH<\/strong> <strong>variable<\/strong>, you&#8217;ll get the following:\n<pre class=\"lang-java\"><code>\n-bash: jmeter: command not found\n<\/code><\/pre>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n           \r\n            <div class=\"onp-locker-call\" style=\"display: none;\" data-lock-id=\"onpLock636584\">\r\n                <p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li>In terminal, go to the <strong>bin<\/strong> folder, where you&#8217;ve downloaded JMeter<\/li>\n<li>Press <strong>pwd<\/strong> command to get the current working directory<\/li>\n<li>Update the <strong>PATH variable<\/strong> with the following command:\n<pre class=\"lang-java\"><code>\nexport PATH=$PATH:\/Users\/user\/Downloads\/apache-jmeter-2.13\/bin<\/code><\/pre>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p>li&gt;Now type <strong>jmeter<\/strong> in the terminal and Apache JMeter will start<\/p>\n<p>This is what you should see in your terminal:<\/p>\n<pre class=\"lang-java\"><code>\ncomputer:bin user$ jmeter\n-bash: jmeter: command not found\ncomputer:bin user$ pwd\n\/Users\/user\/Downloads\/apache-jmeter-2.13\/bin\ncomputer:bin user$ export PATH=$PATH:\/Users\/user\/Downloads\/apache-jmeter-2.13\/bin\ncomputer:bin user$ jmeter\norg.apache.jmeter.testelement.TestPlan\norg.apache.jmeter.control.gui.TestPlanGui\n<\/code><\/p>\r\n            <\/div>\r\n         \r\n\r\n        <\/pre>\n<p>With\u00a0<a href=\"https:\/\/loadfocus.com\/jmeter-load-testing\">JMeter Cloud Load Testing Tool<\/a>\u00a0from\u00a0<a href=\"https:\/\/loadfocus.com\/\">LoadFocus<\/a>, you can upload your Apache JMeter test scripts (.jmx files), run and analyze JMeter results from multiple world locations, everything in an easy to use UI.<\/p>\n\n\n<p><em>Written by&nbsp;<a href=\"https:\/\/coursinator.com\/instructor\/bogdan-vazzolla\" target=\"_blank\" rel=\"noreferrer noopener\" class=\"broken_link\">Bogdan&nbsp;Vazzolla<\/a>.<\/em><\/p>\n\n\n\n<p><em><a href=\"https:\/\/loadfocus.com\/\">LoadFocus<\/a>\u00a0is a cloud testing platform,\u00a0a\u00a0<a href=\"https:\/\/loadfocus.com\/load-testing\" target=\"_blank\" rel=\"noreferrer noopener\">load and stress testing tool<\/a>\u00a0which provides the infrastructure to run tests with thousands of concurrent users, from\u00a0<a href=\"https:\/\/loadfocus.com\/locations\">multiple cloud locations<\/a>, in less than a few minutes, keep history of the results, compare different runs to inspect performance improvements or performance degradation.<\/em>\u00a0<em>It also supports running\u00a0<a href=\"https:\/\/loadfocus.com\/jmeter-load-testing\" target=\"_blank\" rel=\"noreferrer noopener\">JMeter load tests from the cloud<\/a><\/em>\u00a0and\u00a0<a href=\"https:\/\/loadfocus.com\/page-speed-monitoring\" title=\"\">monitoring and audit web and mobile performance<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p><span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\"><\/span> <span class=\"rt-time\"> &lt; 1<\/span> <span class=\"rt-label rt-postfix\">minute read<\/span><\/span>In case you want to easily start Apache JMeter load testing tool on your MAC OS, here some things which you help you get started. Once you downloaded Apache JMeter, just go to the PATH where you&#8217;ve dowloaded it. For example, I&#8217;ve downloaded JMeter in my Downloads folder. Here are\u00a0full details on how to run&#8230;  <a href=\"https:\/\/loadfocus.com\/blog\/2016\/04\/how-to-add-jmeter-to-the-path-environment-variable-on-mac-os-x\" class=\"more-link\" title=\"Read How to Add JMeter to the PATH Environment Variable On Mac OS X\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,6],"tags":[130,131],"class_list":["post-782","post","type-post","status-publish","format-standard","hentry","category-apache-jmeter","category-performance-testing","tag-add-jmeter-to-path","tag-update-path-env-var"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/posts\/782","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/comments?post=782"}],"version-history":[{"count":1,"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/posts\/782\/revisions"}],"predecessor-version":[{"id":2605,"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/posts\/782\/revisions\/2605"}],"wp:attachment":[{"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/media?parent=782"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/categories?post=782"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/tags?post=782"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}