You are here

[Fixed] Java Portable Launcher doesn't support quoted paths?!

5 posts / 0 new
Last post
ascend4nt
Offline
Last seen: 10 years 7 months ago
Joined: 2010-09-10 13:42
[Fixed] Java Portable Launcher doesn't support quoted paths?!

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!

John T. Haller
John T. Haller's picture
Offline
Last seen: 1 hour 17 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Correct

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!

ascend4nt
Offline
Last seen: 10 years 7 months ago
Joined: 2010-09-10 13:42
Drag and drop gives same result

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

John T. Haller
John T. Haller's picture
Offline
Last seen: 1 hour 17 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Ah

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!

John T. Haller
John T. Haller's picture
Offline
Last seen: 1 hour 17 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Fixed in 2.0

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!

Log in or register to post comments