Java(tm) Launcher

Dolphin Service Menus

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

0
Score 50.0%
Description:

Java Archive (*.jar) Launcher
Last changelog:

14 years ago

1.0.2
- Added Polish translation

1.0.1
- Added German and French translations (thanks to denisq)
- New icon
- README.txt: Added link to the kde-apps.org page
- Changed order of the installer menu items

1.0
- Initial release

FellowConspirator

13 years ago

It makes more sense to use binfmt-misc than Konqueror. If anyone is interested, I have a prepackaged (RPM and tgz) setup for enabling it.

Basically, Linux permits you to register new executable types and how the executable is started. It's trivial to register jars as an executable type and have it 'java -jar' the jar if you set the executable bit on it.

This has the advanatage that the jar file with the executbale bit follow all of the same semantics as regular executables (including the use of the execute bit to differentiate them from non-executable jars).

Report

denisq

14 years ago

that's true that KDE should be configured to launch it by double-clicking, but instead of it ark is being opened... :-|

here is my version of it:
[Desktop Entry]
ServiceTypes=application/x-jar
Actions=runjar

[Desktop Action runjar]
Name=Run Java Archive
Name[de]=Java-Archiv ausführen
Name[fr]=Exécuter l'archive Java
Icon=source_java
Exec=java -jar %f

nicer icon and other description!

btw, you can put it into your Home, instead of installing it as root:
~/.kde/share/apps/konqueror/servicemenus/

Report

maarizwan

14 years ago

konqueror's file type will do good justice, just clicking would help launch the jar file instead of right-clicking and actions->run java archive.

appreciate your work, but it is not the best approach IMHO. thanks.

Report

C

kdt

13 years ago

IMHO this could be a little bit confusing for some people, because not all .jar-files are "executable"

Report

anytimeIsLunchtime

14 years ago

why not add an application for the mime-type "application/x-jar"?

(the command you want is of course: "java -jar")

Report

denisq

9 years ago

I fully agree, it is easier an cleaner!

I am wondering why this method is not more popular (why isn't it default, why is nobody writing that kind of .desktop file instead of service menus?)

Report

14 years ago

1.0.2
- Added Polish translation

1.0.1
- Added German and French translations (thanks to denisq)
- New icon
- README.txt: Added link to the kde-apps.org page
- Changed order of the installer menu items

1.0
- Initial release

12345678910
product-maker Count: 4 Rating: 5.0
File (click to download) Version Description Downloads Date Filesize DL OCS-Install
Pling
*Needs ocs-url or ocs-store to install things
Details
license
version
1.0.2
updated Jul 25 2005
added Jul 25 2005
downloads 24h
0
page views 24h 3
System Tags addon