Bug 61026 - Cannot run program "keytool": CreateProcess error=2 when starting JMeter 3.2 in gui mode
Summary: Cannot run program "keytool": CreateProcess error=2 when starting JMeter 3.2 ...
Status: VERIFIED FIXED
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: Main (show other bugs)
Version: 3.2
Hardware: PC All
: P2 normal (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-22 22:27 UTC by Anthony Kearns
Modified: 2017-09-09 17:38 UTC (History)
1 user (show)



Attachments
Jmeter Log File (8.30 KB, text/plain)
2017-04-22 22:27 UTC, Anthony Kearns
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anthony Kearns 2017-04-22 22:27:44 UTC
Created attachment 34940 [details]
Jmeter Log File

Today i downloaded the new JMeter 3.2 build and tried to start it in gui mode e.g. ran the jmeter.bat from the bin folder.

JMeter started but i noticed there were errors in the log viewer. Please see the attached file for the exception details and my system details etc.

I do not have any third party plugins etc installed. I just literally downloaded and extracted and tried to run in user and admin mode.
Comment 1 Milamber 2017-04-23 12:15:13 UTC
Thank you for your report. This not an issue, JMeter try several ways to find the keytool util. 
The error message just say that JMeter don't find keytool util from PATH environment variable.
After JMeter finally found keytool from JAVA_HOME variable, so the keystore can be generated with success.

So JMeter 3.2 despite the -not-error message will work correctly on your machine.

I've change this message from the level ERROR to INFO to avoid this (false) error message (and move the stacktrace into DEBUG level).


Thanks



URL: http://svn.apache.org/viewvc?rev=1792359&view=rev
Log:
Cannot run program "keytool": CreateProcess error=2 when starting JMeter 3.2 in gui mode
Change level (from ERROR to INFO) of the exception message when JMeter try to find the keytool util from PATH env var. It's not a error because JMeter try to find keytool with several ways.
Little code format to allow better code review.
Bugzilla Id: 61026

Modified:
    jmeter/trunk/src/jorphan/org/apache/jorphan/exec/KeyToolUtils.java
    jmeter/trunk/xdocs/changes.xml
Comment 2 The ASF infrastructure team 2022-09-24 20:38:08 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/4375