jmeter icon indicating copy to clipboard operation
jmeter copied to clipboard

Double-click

Open alikavlak2021 opened this issue 2 years ago • 7 comments

Expected behavior

When user double-click to Jmeter jar file, Jmeter interface should open.

Actual behavior

I am using Windows 10. I have Java 8 and JDK 17 installed on my computer. And I have Apache Jmeter 5.5 and 5.6.2 When I double-click the Jmeter jar file, it does not open. I also had it open the jar files in the bin folder with javaw, but this solution did not work.

Steps to reproduce the problem

  1. Go to the 'Program Files'
  2. Click Apache Jmeter
  3. Go to the bin folder
  4. Find Apache Jmeter jar file an double click

JMeter Version

5.6.2

Java Version

17

OS Version

Windows 10 Pro 22H2

alikavlak2021 avatar Nov 20 '23 09:11 alikavlak2021

Hi @alikavlak2021,

not part of the JMeter developer team, though doing developments atm. I did notice that JMeter does launch, but the window will be put in background and in my case, it will be hidden by other windows.

I guess you do not see the apache icon on the task bar when it launches. Could you send details about your JDK with the command 'java --version' from the command line you are using ?

Could you as well from a command line send the output of the command 'where java' ?

Have you tried to open a command line from the JMeter directory and execute the command 'java -jar ApacheJMeter.jar' ?

In my case, I have been using an Open JDK v11 and an Oracle JDK v19 with no problems.

epoitier avatar Nov 20 '23 13:11 epoitier

Hi, Here are the commands you requested from me and their results:   Also when I try with    'java -jar "C:\Program Files\apache-jmeter-5.6.2\bin\ApacheJMeter.jar"  (FAILED)   But when I try with    'java -jar "C:\Program Files\apache-jmeter-5.5\bin\ApacheJMeter.jar" (SUCCESS)  But I want to run my codes with 5.6.2 but it does not open.And finally here are my environment variables and I think everything is true:  I have Java 8 to be able to open another app.   So why cannot I open the 5.6.2 interface?   Best regards.  -Ali-  From: epoitierSent: Monday, November 20, 2023 4:51 PMTo: apache/jmeterCc: alikavlak2021; MentionSubject: Re: [apache/jmeter] Double-click (Issue #6107) Hi @alikavlak2021,not part of the JMeter developer team, though doing developments atm. I did notice that JMeter does launch, but the window will be put in background and in my case, it will be hidden by other windows.I guess you do not see the apache icon on the task bar when it launches. Could you send details about your JDK with the command 'java --version' from the command line you are using ?Could you as well from a command line send the output of the command 'where java' ?Have you tried to open a command line from the JMeter directory and execute the command 'java -jar ApacheJMeter.jar' ?In my case, I have been using an Open JDK v11 and an Oracle JDK v19 with no problems.—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***> 

alikavlak2021 avatar Nov 21 '23 05:11 alikavlak2021

Hi @alikavlak2021,

unable to see (due to the formatting issue, I believe you answered using your email client) the result of your 'where java', have you tried to remove Java 8 to have a newer one (you mentioned you are using JDK 17, though unsure which one is selected in your case)

Best regards, Emmanuel POITIER

epoitier avatar Nov 21 '23 07:11 epoitier

Hi,

  • Here are the commands you requested from me and their results:

  • Also when I try with 'java -jar "C:\Program Files* apache-jmeter-5.6.2\bin\ApacheJMeter.jar" (FAILED)*

  • But when I try with 'java -jar "C:\Program Files* apache-jmeter-5.5\bin\ApacheJMeter.jar" *(SUCCESS)

But I want to run my codes with 5.6.2 but it does not open.

And finally here are my environment variables and I think everything is true:

I have Java 8 to be able to open another app.

So why cannot I open the 5.6.2 interface?

Best regards.

-Ali-

alikavlak2021 avatar Nov 21 '23 08:11 alikavlak2021

Hey, java -version:java version "1.8.0_131"Java(TM) SE Runtime Environment (build 1.8.0_131-b11)Java HotSpot(TM) Client VM (build 25.131-b11, mixed mode, sharing) where java: C:\ProgramData\Oracle\Java\javapath\java.exeC:\Program Files\Common Files\Oracle\Java\javapath\java.exeC:\Program Files\Java\jdk-17\bin\java.exe When I try with    'java -jar "C:\Program Files\apache-jmeter-5.6.2\bin\ApacheJMeter.jar" (FAILED) When I try with    'java -jar "C:\Program Files\apache-jmeter-5.5\bin\ApacheJMeter.jar" (SUCCESS)  I want to run Jmeter 5.6.2 but it does not open.I have JDK 17 and (Java 8 to be able to open another app). I uninstalled Java 8 anyway and tried to open Jmeter but could not do. So why cannot I open the 5.6.2 interface?  Best regards.   Sent from Mail for Windows From: epoitierSent: Tuesday, November 21, 2023 10:52 AMTo: apache/jmeterCc: alikavlak2021; MentionSubject: Re: [apache/jmeter] Double-click (Issue #6107) Hi @alikavlak2021,unable to see (due to the formatting issue, I believe you answered using your email client) the result of your 'where java', have you tried to remove Java 8 to have a newer one (you mentioned you are using JDK 17, though unsure which one is selected in your case)Best regards,Emmanuel POITIER—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***> 

alikavlak2021 avatar Nov 22 '23 05:11 alikavlak2021

Hi @alikavlak2021,

thanks for the additional information. I installed a JRE with same version (as the one having precedence on your system is Java 8 131), but cannot replicate the issue you mentioned. In my case did work with all Java version I used (Java v8, Java v11 and Java v19). I know (in my case) the path pointing to the Oracle\Java\javapath* gives me always an issue, and will advise you to get rid of them and to have in your PATH only the JDK-17 bin path to ensure the javapath does not interfer (it is used to auto select a version when multiple Java is found)

Best regards, Emmanuel POITIER

epoitier avatar Nov 22 '23 07:11 epoitier

Hi, My path shows only JDK 17 but again I cannot open with double-click.Thank you so much for information.I think I should look for any other solution.  Best regards.  -Ali- Sent from Mail for Windows From: epoitierSent: Wednesday, November 22, 2023 10:15 AMTo: apache/jmeterCc: alikavlak2021; MentionSubject: Re: [apache/jmeter] Double-click (Issue #6107) Hi @alikavlak2021,thanks for the additional information. I installed a JRE with same version (as the one having precedence on your system is Java 8 131), but cannot replicate the issue you mentioned. In my case did work with all Java version I used (Java v8, Java v11 and Java v19). I know (in my case) the path pointing to the Oracle\Java\javapath* gives me always an issue, and will advise you to get rid of them and to have in your PATH only the JDK-17 bin path to ensure the javapath does not interfer (it is used to auto select a version when multiple Java is found)Best regards,Emmanuel POITIER—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***> 

alikavlak2021 avatar Nov 22 '23 11:11 alikavlak2021