Welcome to my blog, hope you enjoy reading
RSS

Tuesday 25 June 2013

HowTo: Run .jar files in Ubuntu

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:
                 Find the .jar file in the File Browser (a.k.a Nautilus)
                 Right click the .jar file > Properties
                Click on the “Open With” tab along the top
                Change the bullet to be Sun Java 6 Runtime
                Click Close and you’re done.

0 comments: