https://bz.apache.org/bugzilla/show_bug.cgi?id=59052

Frank <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|WONTFIX                     |---
             Status|RESOLVED                    |REOPENED
            Version|2.13                        |3.0
           Severity|normal                      |minor

--- Comment #2 from Frank <[email protected]> ---
I second this. 

It is usual that the JDK or JRE present in the PATH of the system is not the
one used to run JMeter. And I know you can copy the jmeter.bat and modify it
yourself but this can be easily fixed moving one line in the jmeter.bat file:

Line 64: if .%JM_LAUNCH% == . set JM_LAUNCH=java.exe <-- Move this to line 33 

And changing this:
Line 34: for /f "tokens=3" %%g in ('java -version 2^>^&1 ^| findstr /i
"version"') do (

To:

for /f "tokens=3" %%g in ('%JM_LAUNCH% -version 2^>^&1 ^| findstr /i
"version"') do (

So the new would look like:

Line 33: if .%JM_LAUNCH% == . set JM_LAUNCH=java.exe
Line 34: for /f "tokens=3" %%g in ('%JM_LAUNCH% -version 2^>^&1 ^| findstr /i
"version"') do (


Then you can set JM_LAUNCH to use a full path (i.e
JM_LAUNCH=C:\myjdk\bin\java.exe) and it works perfectly (winxp, win7,
winserver2012 at least).

Is not a big deal but simplifies the execution when having multiple JDKs

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to