Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Smartgit not opening

Tags:

git

smartgit

I am using ubuntu 12.04. I have installed a gui client smartgit for git via ppa, the smartgit icon even shows up in the dash home.

enter image description here

But on clicking the icon the program does not open and nothing happens , no error message is shown. Can anybody help me with why is that happening ?

like image 770
Himanshu Mittal Avatar asked May 07 '15 12:05

Himanshu Mittal


1 Answers

Step 1: Install OpenJDK 8

$ sudo apt-get update
$ sudo apt-get install openjdk-8-jdk

For more information how to install Java, take a look at How To Install Java with Apt-Get on Ubuntu 16.04

Step 2: Make version 8 your default Java

Check which jdk versions are available on your system

$ sudo update-java-alternatives --list

you should see something like:

java-1.7.0-openjdk-amd64 1071 /usr/lib/jvm/java-1.7.0-openjdk-amd64
java-1.8.0-openjdk-amd64 1069 /usr/lib/jvm/java-1.8.0-openjdk-amd64

Change default Java version:

$ sudo update-java-alternatives --set java-1.8.0-openjdk-amd64

Step 3: Update SmartGit config

Open smartgit.vmoptions

$ nano ~/.smartgit/smartgit.vmoptions

and add:

jre=/usr/lib/jvm/java-1.8.0-openjdk-amd64/
like image 72
Vasil Dakov Avatar answered Oct 11 '22 15:10

Vasil Dakov