
Java(tm) Launcher
Source (link to git-repo or to original if based on someone elses unmodified work):
Description:
Java Archive (*.jar) Launcher Last changelog:
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
Ratings & Comments
6 Comments
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).
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/
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.
IMHO this could be a little bit confusing for some people, because not all .jar-files are "executable"
why not add an application for the mime-type "application/x-jar"? (the command you want is of course: "java -jar")
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?)