1

I'm trying to run a Jar file on ubuntu 14.04. I've already installed OpenJDK Java 6 and 7 Runtime and turned the jar file to be executable. I double click on the file but nothing seems to happen!

I also read the given directions below but I cannot understand what to do:

#!/bin/bash
java -jar Hypatia_7.4_Masterclass.jar

Should I write something on the terminal in order to run the file?

MakisL
  • 11
  • 2

1 Answers1

1
#!/bin/bash
java -jar Hypatia_7.4_Masterclass.jar

This "set of instructions" you have is just bash script. If you're unfamiliar with shell scripting, here is a quick intro on WikiBooks, but you don't need to worry about that to run your file.

All you have to do to run a .jar file is open a terminal and type java -jar WhateverYourFileNameIs.jar.

muru
  • 207,228