You are here

An App that is not an .exe (jar) to the launch menu

12 posts / 0 new
Last post
zerodamage
Offline
Last seen: 12 years 11 months ago
Joined: 2007-08-27 10:13
An App that is not an .exe (jar) to the launch menu

I want to add this one particular java program to my launcher. It is a Java app and has a .jar extension. If I change the extension to .exe it will show up but it will obviously not work. Is there a way to make this show up in my launcher? The fact that I cannot just create a shortcut annoys me.

For reference, this is the program.
Encryption Wizard.
http://www.spi.dod.mil/ewizard.htm

vf2nsr
vf2nsr's picture
Offline
Last seen: 8 years 4 months ago
Developer
Joined: 2010-02-13 17:10
I believe

that the launcher manual section on Java based apps should give you all the answers you need, I would type them out but why duplicate, and the manual is a lot clearer

“Be who you are and say what you feel because those who mind don't matter and those who matter don't mind.” Dr. Seuss

zerodamage
Offline
Last seen: 12 years 11 months ago
Joined: 2007-08-27 10:13
Way too much to get this to

Way too much to get this to work. Never-mind that the instructions are not very clear. The fact that a simple shortcut cannot be created is ridiculous.

vf2nsr
vf2nsr's picture
Offline
Last seen: 8 years 4 months ago
Developer
Joined: 2010-02-13 17:10
Sorry

you asked how to make it show up in your launcher, did you mean actually to have it show up in the menu? As that would be a different thing. I was under the impression you had created an actual launcher for it? Especially since it is dependent on Java being present on the host computer ( unless you have portable Java which in that case you need to point the jar to it and not the host machine.)

“Be who you are and say what you feel because those who mind don't matter and those who matter don't mind.” Dr. Seuss

Gord Caswell
Gord Caswell's picture
Offline
Last seen: 2 weeks 3 days ago
DeveloperModerator
Joined: 2008-07-24 18:46
Try the jPortable launcher

While you can't add the jar file itself and have it show up in the menu, you can try using the jPortable launcher: https://portableapps.com/apps/utilities/java_portable_launcher

zerodamage
Offline
Last seen: 12 years 11 months ago
Joined: 2007-08-27 10:13
I did find a work around but

I did find a work around but this may actually work too. I used Launch4j and created an .exe file that launches the Java app. I now have an launcher icon on the main PA menu under "Other" that works.

http://launch4j.sourceforge.net/

The app was confusing at first on how to use; I kept thinking the "play" looking button was the button needed to create the .exe but I was wrong.

solanus
solanus's picture
Offline
Last seen: 10 years 4 months ago
Joined: 2006-01-21 19:12
Not hard at all

But it takes a little ferjiggering.
The menu will automatically find exe files if they are in the correct menu structure. If you want the menu to find any other type of file, you need to add an appinfo.ini file and an icon.

First make sure you have the right folder structure. This is an example.
X:\PortableApps\EncryptionWizard\EW-Public-3.3.1.jar

and

X:\PortableApps\EncryptionWizard\App\Appinfo\

Make a text file called appinfo.ini in the Appinfo folder.
The contents of the appinfo.ini:

[Format]
Type=PortableApps.comFormat
Version=2.0

[Details]
Name=Encryption Wizard
AppID=EncryptionWizard
Publisher=ATSPI Technology Branch
Homepage=http://www.spi.dod.mil/ewizard.htm
Category=Utilities
Description=
Language=English
InstallType=English

[License]
Shareable=true
OpenSource=true
Freeware=true
CommercialUse=true

[Version]
PackageVersion=3.3.1.0
DisplayVersion=3.3.1

[Control]
Icons=1
Start=EW-Public-3.3.1.jar

If you want an icon, you'll need to create an image file called appinfo.ico in the Appinfo folder - it's entirely optional. There are many ways to make an icon, the simplest is to make a 32x32 pixel .bmp file, save it, and rename it appinfo.ico.

Please note that this will not make the app portable if it is not already! It will only give a shortcut that will work the same as if you double-clicked the .jar file.

I made this half-pony, half-monkey monster to please you.

GJansen
Offline
Last seen: 12 years 3 months ago
Joined: 2011-03-06 09:14
Cheers

I will use this for my .jars :). Thanks.

GJansen
Offline
Last seen: 12 years 3 months ago
Joined: 2011-03-06 09:14
Almost completely happy

I've used this for a .jar (gogui) and the only issue I came up against is the fact that javaportable launcher doesn't accept arguments given to it on start up like: ..\jportablelauncher\jportablelauncher.exe ..\gogui\lib\gogui.jar.
This means the method you describe only works when you have java installed on the pc itself. Fortunately, I have not. So I just use the method to start the javaportable launcher and open gogui.jar from there. Works fine enough, but it's not perfect.

solanus
solanus's picture
Offline
Last seen: 10 years 4 months ago
Joined: 2006-01-21 19:12
It's just a shortcut

Ya, this was really only meant as a answer to the OP - it's kind of a generic way to get any type of file to appear in the menu, and of course doesn't confer any special functionality to the app, it only works the same as if you double-clicked on the file itself. It will run whatever the associated action is on the host computer.
Perhaps it might work well in conjunction with eXpresso or PFA, or when the platform someday gets file associations, I don't know.

The nice thing about the appinfo.ini file is that it does support relative paths, so you can add links to files, and folders, that are on your flash drive without worrying about drive letters. I use this approach in Folderz.

I made this half-pony, half-monkey monster to please you.

GJansen
Offline
Last seen: 12 years 3 months ago
Joined: 2011-03-06 09:14
The relative paths thing is

The relative paths thing is pretty cool. I guess I'll just wait for passing on arguments or file associations to become a feature.
I have time...

Gremlin
Offline
Last seen: 2 months 2 days ago
Joined: 2010-07-02 04:48
PA Shortcut Creator

Just a coincidence but maybe this is exactly what you need?

Cheers

Gremlin

Log in or register to post comments