yed debian 64位机器不能安装的问题

The Problem

Running the yEd install script results in the following output:
Unpacking JRE ...
Preparing JRE ...
Starting Installer ...
Could not display the GUI. This application needs access to an X Server.

Usually, this problem happens for Java versions other than the official Sun/Oracle Java such as OpenJDK. Moreover, on 64 bit systems, the installer (which uses 32 bit Java internally) can fail due to missing 32 bit X11 binaries.
The Resolution

First, it is necessary to determine which Java version is installed. This can be done by typing
java -version

in a terminal. The output should be similar to
java version "1.6.0_21"
Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
Java HotSpot(TM) Server VM (build 17.0-b16, mixed mode)

for 32 bit Java installations or
java version "1.6.0_21"
Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
Java HotSpot(TM) 64-Bit Server VM (build 17.0-b16, mixed mode)

for 64 bit Java installations. The important parts are the version number in the first line (it is recommend to use 1.6.0_17 or newer) and the last line that has to start with "Java HotSpot".

If the last line does not start with "Java HotSpot", the installed Java version should be replaced with the official Sun/Oracle Java, which can be downloaded from http://www.oracle.com/technetwork/java/javase/downloads/index.html. It suffices to download and install Java Platform, Standard Edition JRE.

If the install script aborts with the above output although official Sun/Oracle Java is installed, yEd has to be "installed" manually. This can be done by downloading the generic Java yEd Zip file from http://www.yworks.com/yed. Unzipping results in a new directory with two files, license.html and yed.jar.
Typing
java -jar /path/to/yed.jar

in a terminal (with /path/to/ replaced with the actual path) will start yEd.
With a simple shell script like
#!/bin/sh
java -jar /path/to/yed.jar "$@"

in a directory referenced in the $PATH environment variable, yEd can be started conveniently by typing the script's name.
answered Sep 21, 2011 by thomas [yWorks] (14,580 points)
edited Mar 12 by michael

Same problem here. Using the manual method did work - and is also only half the size. Works so far fine with openjdk.
Not sure, why the so called shell script is nearly double the size and I am not sure, wether you have control over the install path with the script.
Go for manual installation 1st hand

$ java -version
java version "1.7.0_147-icedtea"
OpenJDK Runtime Environment (IcedTea7 2.0) (Gentoo build 1.7.0_147-icedtea-b147)
OpenJDK 64-Bit Server VM (build 21.0-b17, mixed mode)
commented Mar 9 by anonymous

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值