【发布时间】:2014-12-12 20:41:48
【问题描述】:
我尝试在我的 Ubuntu 14.10 32bit 上使用另一个 java 版本启动 smartgit 6.5。
在文件/usr/share/smartgit/bin/smartgit.sh 中:
# 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我找到了如何编辑文件的答案:
gedit ~/.smartgit/smartgit.vmoptions
所以我只输入了:
jre=/usr/lib/jvm/java-7-openjdk-i386/bin/java
我想,这应该改变 smartgit 中使用的 java 版本(在菜单 Help->Information 中可见)
但事实并非如此!还在1.7.0_72-b14 (/usr/lib/jvm/java-7-oracle/jre)
这个文件看起来如何才能使用另一个 Java 引擎?
【问题讨论】: