Java Portable Launcher currently gives a 'cannot find file' error when it is passed a path to a JAR file that is surrounded with double quotes.
For example, launching with this will fail:
JavaPortableLauncher.exe "c:\A folder\with a java JAR file\myfile.jar"
But launching it this way works:
JavaPortableLauncher.exe c:\A folder\with a java JAR file\myfile.jar
This seems a pretty simple problem to solve, and it'd be nice not to have to resort to workarounds like stripping quotes off with another program (or batch file) before calling the launcher.
Thanks for looking into this!
But as Windows passes a path to it without double quotes when you drag and drop a file onto it, does it matter?
Sometimes, the impossible can become possible, if you're awesome!
While I'd rather not start every application with drag-and-drop (quite non-intuitive), I did go ahead and give it a shot. I opened both folders, dragged the one .JAR file onto JavaPortableLauncher.exe, and got the same error message.
Here's the message in full (using DBGL as an example):
Java Portable Launcher cannot be started. You may wish to re-install to fix this issue. (ERROR: "C:\my path\dbgl.jar" could not be found)
I've just done some experimentation, and it appears that Windows will only skip adding double-quotes on drag-and-drops for paths without spaces in it. Otherwise, if there's a space in the path, it will be passed as a quoted parameter.
To solve this particular issue, I currently use a batch file which strips the double-quotes in order to make it work.
Ascend4nt
Let me look into it, then. I should to a branding update for the app anyway.
Sometimes, the impossible can become possible, if you're awesome!
I've fixed this in the 2.0 release of the jPortable Launcher so you can pass it either way now.
Sometimes, the impossible can become possible, if you're awesome!