HowTo: Run .jar files in Ubuntu

To run a JAR file from the command line in ubuntu using the following command:

java -jar filename.jar

Otherwise it is also possible to enable double clicking to run jar files too by the following simple steps:

  1. Find the .jar file in the File Browser (a.k.a Nautilus)
  2. Right click the .jar file > Properties
  3. Click on the “Open With” tab along the top
  4. Change the bullet to be Sun Java 6 Runtime
  5. Click Close and you’re done.

Now you should be able to just double click the file and it will run just like most other files!


Related posts:

  1. HowTo: Fix Jumping/Skipping Sound in Spotify under Wine – Ubuntu Karmic (9.10)
  2. HowTo Fix: “There is a problem with your sound card. Spotify can’t play music.” (Wine)
  3. HowTo: Stop Ubuntu Checking For Automatic Updates
This entry was posted in HowTo, Ubuntu and tagged , , , , , , , , , , , , . Bookmark the permalink.

2 Responses to HowTo: Run .jar files in Ubuntu

  1. Whoo!

    JAR files are awesome!

  2. Alex says:

    hahaha! yes, yes they are :) oh wait this post is fully empty :/ should sort that out

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>