java Ubuntu Smartgit 无法启动

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5479196/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-30 11:18:38  来源:igfitidea点击:

Ubuntu Smartgit won't start

ubuntujavasmartgit

提问by FMaz008

I'm trying to get smartgit running on Ubuntu, and I'm constantly getting this error:

我正在尝试让 smartgit 在 Ubuntu 上运行,但我不断收到此错误:

Disabling SSE42Intrinsics to work around bug 6875866.
An incompatible Java version has been detected which has been reported to cause strange bugs. Aborting now. To force SmartGit to use this Java version, set the VM property     smartgit.checkIncompatibleJava to false (use at your own risk).

Please install the latest release of the SUN Java SE Runtime Environment (JRE) from:
  http://java.sun.com/javase/downloads/
or if it is already installed, make sure it is used.

The nabble support forum doesn't work at this very moment, and I can't find any --working-- installation documentation.

nabble 支持论坛目前无法使用,而且我找不到任何 --working-- 安装文档。

I've tried to download the JRE from the link given in the readme-linux.txt file, but that bige me a single .bin file.

我已经尝试从 readme-linux.txt 文件中给出的链接下载 JRE,但这给我带来了一个 .bin 文件。

I've also installed the sun-java6-jre package from the synaptic manager, and notice I already had the following package installed:

我还从突触管理器安装了 sun-java6-jre 包,注意我已经安装了以下包:

  • default-jre,
  • openjdk-6-jre-lib
  • gcj-4.x-jre-lib.
  • 默认-jre,
  • openjdk-6-jre-lib
  • gcj-4.x-jre-lib。

Adding sun-java6-jre didn't helped.

添加 sun-java6-jre 没有帮助。

How can I get smartgit installed correctly ?

如何正确安装 smartgit?

回答by megas

Try this tutorial http://solaajayi.wordpress.com/2011/01/04/installing-smartgit-in-ubuntu-linux-10-04/

试试这个教程http://solaajayi.wordpress.com/2011/01/04/installing-smartgit-in-ubuntu-linux-10-04/

After this tutorial I've got smartgiton my ubuntu system.

在本教程之后,我的 ubuntu 系统上有了smartgit

回答by GuruM

Step1 Dowload 2 files from SUN site as specified in the readme-linux.txt

Step1 按照readme-linux.txt中的说明,从SUN站点下载2个文件

jre-6u24-linux-i586-rpm.bin (installer script) and jre-6u24-linux-i586.bin (actual jre-1.6)

jre-6u24-linux-i586-rpm.bin (installer script) and jre-6u24-linux-i586.bin (actual jre-1.6)

Step2 Run as root and chmod the installer script file

Step2 以 root 身份运行并 chmod 安装程序脚本文件

$> su - $> chmod +x jre-6u24-linux-i586-rpm.bin

$> su - $> chmod +x jre-6u24-linux-i586-rpm.bin

Step3 Execute the installer script

Step3 执行安装脚本

$> ./jre-6u24-linux-i586-rpm.bin //Script shows "Done" at the end of the installation.

$> ./jre-6u24-linux-i586-rpm.bin //Script shows "Done" at the end of the installation.

Step4 Point to the right installation of java Get current java source and version in case you need to undo the java switch

Step4 指向正确安装的java 获取当前java源和版本,以防需要撤销java切换

$> which java $> java -version java version "1.6.0_20" OpenJDK Runtime Environment (IcedTea6 1.9.7) (fedora-52.1.9.7.fc14-i386) OpenJDK Server VM (build 19.0-b09, mixed mode)

$> which java $> java -version java version "1.6.0_20" OpenJDK Runtime Environment (IcedTea6 1.9.7) (fedora-52.1.9.7.fc14-i386) OpenJDK Server VM (build 19.0-b09, mixed mode)

$> file /usr/bin/java /usr/bin/java: symbolic link to `/etc/alternatives/java'

$> 文件 /usr/bin/java /usr/bin/java: 到 `/etc/alternatives/java' 的符号链接

Step5 Switch between to the SUN java from OpenJDK $> ln -f -s /usr/java/jre1.6.0_24/bin/java /usr/bin/java

Step5 从OpenJDK切换到SUN java $> ln -f -s /usr/java/jre1.6.0_24/bin/java /usr/bin/java

Step6 Check if the switch worked

Step6 检查开关是否工作

$> java -version java version "1.6.0_24" Java(TM) SE Runtime Environment (build 1.6.0_24-b07) Java HotSpot(TM) Server VM (build 19.1-b02, mixed mode)

$> java -version java version "1.6.0_24" Java(TM) SE Runtime Environment (build 1.6.0_24-b07) Java HotSpot(TM) Server VM (build 19.1-b02, mixed mode)

For detailed instructions on installing jre1.6 see the link

有关安装 jre1.6 的详细说明,请参阅链接

http://java.com/en/download/help/linux_install.xml#selfextracting

http://java.com/en/download/help/linux_install.xml#selfextracting

回答by dariush

You need to install openjdk-7-jreUse sudo apt-get install openjdk-7-jre

您需要安装openjdk-7-jre使用 sudo apt-get install openjdk-7-jre

回答by Mot

SmartGit 3 (currently available as preview) works fine and out-of-the-box with OpenJDK.

SmartGit 3(目前作为预览版)运行良好,并且与 OpenJDK 一起开箱即用。