"Error: Unable to access jarfile" if spaces in folder name (with fix)
Closed this issue · 3 comments
heyheyjc commented
Windows 10, Node 8.10.0, webdriverio
The fix is to use double quotes not escaped single quotes in key-sender.js Line 115:
Instead of:
var command = 'java -jar '' + jarPath + '' ' + arrParams.join(' ') + module.getCommandLineOptions();
Use:
var command = 'java -jar "' + jarPath + '" ' + arrParams.join(' ') + module.getCommandLineOptions();
Enteleform commented
Had the same issue, can confirm that @heyheyjc's fix works.
legekka commented
Same issue, same fix. Maybe a platform check would be nice there.
ikovac commented
it works.