Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
26
rated 0 times [  26] [ 0]  / answers: 1 / hits: 188157  / 1 Year ago, sun, november 13, 2022, 6:20:55

I have a problem running .jar files by double-clicking them. When I go to the Properties dialogue I can't find Java--only Archive Manager in the list of programs. But java -jar somefile.jar opens the program.


More From » java

 Answers
2

Maybe you don’t have the runtime environment installed!



To install it try the following instructions.



sudo apt-get install openjdk-7-jre


Or you could install Oracle JRE using the PPA method with the following commands.



sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts


Then to use it to open .jar files try the following.




  1. Right click the .jar file > Properties.

  2. Click on the “Open With” tab along the top.

  3. Change the default choice to be the java runtime environment that you have installed.

  4. Click Close and you should be ready to double click.


[#35332] Monday, November 14, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
peafowkes

Total Points: 356
Total Questions: 102
Total Answers: 117

Location: Lebanon
Member since Tue, Oct 12, 2021
3 Years ago
peafowkes questions
;