garimpeiro-it/node-key-sender

"Error: Unable to access jarfile" if spaces in folder name (with fix)

Closed this issue · 3 comments

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();

Had the same issue, can confirm that @heyheyjc's fix works.

Same issue, same fix. Maybe a platform check would be nice there.

it works.