rubo77 rubo77 - 1 year ago 250
Java Question

Start smartgit with another java version

I tried to start smartgit 6.5 on my Ubuntu 14.10 32bit with another java version.

in the file

it sais:

# To specify an alternative Java Runtime Environment, set the environment
# variable SMARTGIT_JAVA_HOME or add a
# jre=/path/to/jre
# line to smartgit.vmoptions (see below).
# To specify additional VM options, add them to smargit.vmoptions
# or ~/.smartgit/smartgit.vmoptions files.

Here I found an answer how to edit the file:

gedit ~/.smartgit/smartgit.vmoptions

So I entered just:


I thought, this should change the used java version in smartgit (visible in the menu Help->Information)

But it doesn't! It's still on
1.7.0_72-b14 (/usr/lib/jvm/java-7-oracle/jre)

How does this file have to look like to use another Java engine?

Answer Source

I found the solution: When you start smartgit on the console:


you get a warning:

Warning: /usr/lib/jvm/java-7-openjdk-i386/bin/java/bin/java does not exist

there is a double /bin/java in that path, so you only have to enter the path to the bin folder:

gedit ~/.smartgit/smartgit.vmoptions

And enter just:


This starts smartgit with that version

Since now you always have to start smartgit on the console now, a smaller file would be handy: create a file /usr/local/sbin/smg

cd /tmp;
nohup /usr/share/smartgit/bin/ &

and give it executable rights:

chmod +x /usr/local/sbin/smg

now you can start smartgit anywhere with just

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download