Actually for me, xdg-mime query filetype returns application/x-jar, which does not exist, instead of application/x-java-archive.
kmimetypefinder returns the following results:
$ kmimetypefinder -f JDownloader.jar
application/x-java-archive
(accuracy 20)
$ kmimetypefinder -c JDownloader.jar
application/zip
(accuracy 40)
I do not see how the score of the filename-based result can be so low. At least it returns x-java-archive. Actually, I have an idea: the mime database also contains an application/java-archive key, which associates jar files with the Sun Java Runtime.
I have completely reinstalled my system with 9.04. However, at first I installed Ubuntu (with Gnome), so maybe that also has to do something with it? It is not on my system anymore, though.
Actually for me, xdg-mime query filetype returns application/x-jar, which does not exist, instead of application/ x-java- archive.
kmimetypefinder returns the following results: x-java- archive
$ kmimetypefinder -f JDownloader.jar
application/
(accuracy 20)
$ kmimetypefinder -c JDownloader.jar
application/zip
(accuracy 40)
I do not see how the score of the filename-based result can be so low. At least it returns x-java-archive. Actually, I have an idea: the mime database also contains an application/ java-archive key, which associates jar files with the Sun Java Runtime.
I have completely reinstalled my system with 9.04. However, at first I installed Ubuntu (with Gnome), so maybe that also has to do something with it? It is not on my system anymore, though.