jmeter.bat don't use the JM_LAUNCH to test java version, so java versions could be different
Open
os: All
P2
- Dominant language
- Java
- Stars
- 9.5k
- Forks
- 2.3k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 5
Description
**vdaburon** ([Bug 59052](https://bz.apache.org/bugzilla//show_bug.cgi?id=59052&redirect=false)):
Hi,
You could set the JM_LAUNCH but this information is not used to detected the java version, so JM_LAUNCH and 'java' could have differents versions
rem JM_LAUNCH - java.exe (default) or javaw.exe
set JM_LAUNCH=d:\java\jdk1.7
but the java -version 2^>^&1 use the version in the PATH not the JM_LAUNCH
...
for /f "tokens=3" %%g in ('java -version 2^>^&1 ^| findstr /i "version"') do (
rem @echo Debug Output: %%g
set JAVAVER=%%g
)
Regards.
Vincent D.
Votes in Bugzilla: 1
Severity: minor
OS: All
Contributor guide
Assessment
This issue has not been assessed yet.