Can't Execute jar files

I'm having trouble opening jar files because there is no java runtime in open with listed. Even I have installed it via Software Center(i also try to reinstall it via synaptic and i do a --purge via terminal).


Solution 1:

Right click - properties Click on the "Permissions" tab and make sure the "Allow executing file as program" checkbox is checked.

Solution 2:

I just recently had the same problem - the way I fixed it was to uninstall OpenJDK 7 and install OpenJDK 6.

I have no idea why OpenJDK 7 doesn't want to work but it started glitching when I installed it via the Terminal.

Installing OpenJDK 6 is like installing a fresh new version of Java.

I had tried many different other commands and they didn't seem to work.

Solution 3:

You can also use terminal;

java -jar /home/al0s/Downloads/asd.jar

without installing new things.