Join the AMA (Ask Me Anything) with Firefox leadership team to talk about Firefox priorities in 2024. Mark your calendar! Thursday, June 13, 17:00 - 19:00 UTC.

Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

Learn More

jar file helper application

  • 1 réponse
  • 1 a ce problème
  • 3 vues
  • Dernière réponse par lorentz

more options

I have a file extension (.hgf) that I would like to associate with with a Java jar file. I'm running Ubuntu 11.11 and in Dolphin (the file manager GUI) I use "java -jar ~/Havannah/HGui/HGui.jar" as my 'open with' and clicking on hgf files in Dolphin will automatically run my HGui.jar program with the clicked file as input.

When I try to do the same thing in Friefox with 'open with' I cannot get it to work. The file gets saved in /tmp but HGui never seems to run on it. I've tried various combinations of quotes, putting the command into a shell script, etc., but cannot seem to get the click and open behavior I would love to see.

Thanks in advance for any suggestions you might have!

I have a file extension (.hgf) that I would like to associate with with a Java jar file. I'm running Ubuntu 11.11 and in Dolphin (the file manager GUI) I use "java -jar ~/Havannah/HGui/HGui.jar" as my 'open with' and clicking on hgf files in Dolphin will automatically run my HGui.jar program with the clicked file as input. When I try to do the same thing in Friefox with 'open with' I cannot get it to work. The file gets saved in /tmp but HGui never seems to run on it. I've tried various combinations of quotes, putting the command into a shell script, etc., but cannot seem to get the click and open behavior I would love to see. Thanks in advance for any suggestions you might have!

Toutes les réponses (1)

more options

Simply putting the path to the jar file (making no mention of Java) and making the jar file executable was enough to make it work. This did not work in Dolphin so I did not even try it in Firefox -- until I got desperate.