Ask Your Question

how to launch a jar file by double clicking it?

asked 2019-03-02 05:13:02 -0500

Hello there!

I'm trying to run the VUE.jar free mind-mapping tool by double clicking it, on a Fed28 64bit OS. I can launch the jar file via Terminal (java -jar VUE.jar) without much fuss (though many 'Warnings' are output) but I'd like to double click the jar file and for it launch it in GUI mode right away. Instead when I double click it, the archive manager opens up and shows me the contents of the jar file. I have Oracle's Java 1.8.0 installed on my system:

$ java -version
java version "1.8.0_191"
Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)
$ which java

I'd rather not use openJDK.

How do I tell Fedora to java -jar the java archive (jar) file when I double click it instead of launching the graphical archive de-compressor?

Also, I have *.vue files that I'd like to associate with this application from now on. How do I do that?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2019-03-02 13:04:40 -0500

sixpack13 gravatar image

you could put your java command in an bash script like I do with racoon (an google app downloader):



 java -Draccoon.home=/home/ron/DATA/Hardware/SmartPhones/0_Apps/Raccoon -jar ${RacconVersion};

exit 0

don't forget: chmod u-x "your-script"

edit flag offensive delete link more


Make that chmod u+x "your-script" Plus adds a permission; minus removes it.

villykruse gravatar imagevillykruse ( 2019-03-02 13:45:30 -0500 )edit

yup, I didn't double check what I wrote, my bad ! THX

sixpack13 gravatar imagesixpack13 ( 2019-03-02 15:37:48 -0500 )edit

answered 2019-03-02 07:13:26 -0500

This depends on the file explorer you are using.

In Thunar you can

  • right click the .jar file
  • then click Open with other application
  • click on Use a custom command
  • enter /usr/bin/java -jar, or adopt the path to your java
  • you also might want to set *Use as default for this kind of file
edit flag offensive delete link more


How do you "adopt the path to your java"? I don't use Thunar, just the default Files manager in Fed28 where Use a custom command isn't an option. This seems too much of a botheration, I'd rather use other tools such as VYM or Labyrinth. Also, VUE.jar launched via Terminal isn't working properly either -- it doesn't correctly open existing maps, gives trouble creating branches in new ones etc. I'm tempted to bin it.

fedora-newbie gravatar imagefedora-newbie ( 2019-03-02 07:44:00 -0500 )edit

Never mind, I've changed over to CmapTools. For anybody interested here are a couple of links to how to install the software on a Linux machine and create a launcher in ~/.local/share/applications/. Link1, Link2

fedora-newbie gravatar imagefedora-newbie ( 2019-03-07 04:22:29 -0500 )edit

Question Tools

1 follower


Asked: 2019-03-02 05:08:25 -0500

Seen: 1,010 times

Last updated: Mar 02 '19