Reputation: 2682
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: Any suggestions?
Upvotes: 0
Views: 1809
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