Smartgit not opening

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/

Open terminal where smartgit git is placed . Write

cd smartgit
cd bin
sh smartgit.sh 

It will work .

Also if there are any java sdk related issues your screen will prompt with an error .

Tags:

Git

Smartgit