You are here

Open .jar file w/Java Portable Launcher

4 posts / 0 new
Last post
Aqualung
Offline
Last seen: 3 years 4 months ago
Joined: 2009-09-08 13:41
Open .jar file w/Java Portable Launcher

Is there any way I can automate the launching of a .jar file using the Java Portable Launcher w/o having to go through all this detour of specifying the .jar file interactive menu etc.? Can the Java Portable Launcher be launched with arguments, where one could specify the .jar file to launch? What I need is to click on an icon in the PortableApps.com menu that automatically launches my .jar file, with no interaction whatsoever. Can this be done?

3D1T0R
3D1T0R's picture
Offline
Last seen: 3 years 2 months ago
Developer
Joined: 2006-12-29 23:48
Drag&Drop

If you Drag & Drop a .jar file onto JavaPortableLauncher.exe it runs that .jar file w/o asking to look for it, this should work for you if you don't mind opening the JavaPortableLauncher folder to drag your .jar's to.

As a better solution, I would recommend using C.A.F.E. Mod aka eXpresso as this is exactly the sort of thing that it's for, but apparently there is a problem with Java Portable Launcher that prevents it from starting if the path to the .JAR is in quotes, and CAFE puts it in quotes.

I just posted a bug report here.
I will see if I can come up with a fix, and post it if I do.

~3D1T0R

Aqualung
Offline
Last seen: 3 years 4 months ago
Joined: 2009-09-08 13:41
Excellent tool this eXpresso!

Excellent tool this eXpresso! I take it this should allow me to associate filetypes with portable applications (PortableApps), is that so? If so, I will then be killing two birds with one stone: associate .jar files with Java Portable Launcher (when it's fixed, that is), and associate HTML files with portable Chrome, which is something I've been looking to do for a while! Will eXpresso allow me to do the latter?

Anyway, where can I download it from? Is it available in PortableApps format? So far all download links I've seen are down!

(As for the dragging and dropping .jar files onto the Java Portable Launcher exe, forget it. Too cumbersome.)

Edit: I managed to find eXpresso, and I even attempted to associate .htm, .html and .url files with it. What bothers me is that eXpresso is sensitive to double clicking, whereas I have my computer set to respond to single clicking. Is there anything you can do about this? Also, when double clicking a .url file/link, both Chrome and the default browser open. How can I avoid triggering the default browser? (Using Windows7 x64)

3D1T0R
3D1T0R's picture
Offline
Last seen: 3 years 2 months ago
Developer
Joined: 2006-12-29 23:48
CAFE / eXpresso is written to work with Double Click only

What bothers me is that eXpresso is sensitive to double clicking, whereas I have my computer set to respond to single clicking. Is there anything you can do about this?

CAFE / eXpresso is written to work with Double-click only and is going to stay that way (see this comment, and this comment)

Also, when double clicking a .url file/link, both Chrome and the default browser open. How can I avoid triggering the default browser?

This is more than likely a manifestation of the Single-click/Double-click problem. To my knowledge, CAFE / eXpresso turns all (in monitored windows) Double-clicks into Single-clicks (so as not to launch the systems default application) and then runs its associated program.

Therefore AFAIK both of your problems with CAFE / eXpresso have only one fix, Setting your system back to "Double-click to open" in Folder Options.

~3D1T0R

Log in or register to post comments