Taz 3497
Taz 3497

Reputation: 15

How to create a JMETER setenv.bat file with Environment variables

I want to create a JMeter setenv.bat that contains environmental variables such as set JMETER_HOME=xx I want to just type 'jmeter' anywhere on the Terminal CL in any directory to start jmeter, could this done ?

I have used a symbolic link but setenv.bat file must be a better way.

Any example would be appreciated.

Upvotes: 0

Views: 1323

Answers (1)

Dmitri T
Dmitri T

Reputation: 168147

In order to be able to launch JMeter from any place you need to add "bin" folder of your JMeter installation to your operating system PATH

For Windows it can be done via setx command like:

setx PATH=%PATH%;c:\jmeter\bin

replace c:\jmeter\bin with the actual path to your JMeter's bin folder.

In the same shell or after next login you will be able to type jmeter and it will run JMeter GUI.

More information: Get Started With JMeter: Installation & Tests

Upvotes: 1

Related Questions