C_B
C_B

Reputation: 2682

Error starting proxy server in Apache JMeter

When I attempt to start a proxy server in JMeter I'm presented with the following error:

could not create script recording proxy -see log for details: Command:'keytool -genkeypair alias :root_ca: -dname "CN=_DO NOT INSTALL unless this is your certificate (JMeter root CA), OU=Username: root, C=IE" -keyalg RSA -keystore proxyserver.jks -storepass {redacted -keypass {redacted) -validity 7 -ext bc:c' failed, code: 1

illegal option: -ext

Try keytool -help

My proxy configuration: enter image description here Any suggestions?

Upvotes: 0

Views: 1809

Answers (1)

vins
vins

Reputation: 15370

You can fix this by adding the 'Path to JDK' in your start up script (jmeter.bat) - before invoking java.exe

if .%JM_LAUNCH% == . set JM_LAUNCH=java.exe

Try this for .bat file

Set JAVA_HOME= /path/to/JDK
Set PATH = %PATH%;%JAVA_HOME%/bin
if .%JM_LAUNCH% == . set JM_LAUNCH=java.exe

For .sh file,

export JAVA_HOME=/path/to/JDK
export PATH=$PATH:$JAVA_HOME/bin
java $JVM_ARGS -Dapple.laf.useScreenMenuBar=true -jar `dirname $0`/ApacheJMeter.jar "$@"

Upvotes: 2

Related Questions