Jmeter Windows how to force non system Java version usage in Jmeter.bat?
- Dominant language
- Java
- Stars
- 9.5k
- Forks
- 2.3k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 5
Description
Hello,
Jmeter.bat is now quite complex, in previous Jmeter version there was simple way how to hardcode specificy Java.exe path.. to use it.
_REM Original Line Backup if .%JM_LAUNCH% == . set JM_LAUNCH=java.exe
if .%JM_LAUNCH% == . set JM_LAUNCH=C:\"Program Files"\Java\"jre1.6.0_07"\bin\java.exe_
Now im failing to make it working, because when i hardcoded *.java.exe patch.. other expected variables are not working at expected.. because they are expecting, that *.java would be executed from other (\bin) directory..
It not works well with this line:
%JM_START% "%JM_LAUNCH%" %ARGS% %JVM_ARGS% -jar "%JMETER_BIN%ApacheJMeter.jar" %JMETER_CMD_LINE_ARGS%
I tried all patch with "" character or without mojo.. It has problem that for longer patches than 8 character you have to use "", but it probably not works well with parser later..
I Googled how to solve it failed :(
Contributor guide
Assessment
This issue has not been assessed yet.