suse linux安装eclipse后无法启用,解决!

来源:互联网 发布:阿里云php环境 编辑:程序博客网 时间:2024/05/17 07:24

    环境:

linuxSUSE Linux Enterprise Server 11 (x86_64)
VERSION = 11
PATCHLEVEL = 3jdkjava version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)ecliseeclipse-jee-neon-3-linux-gtk-x86_64.tar.gz*

     

使用hadoop用户启动eclipse后报错如下:

  Eclipse: Cannot open display: 

org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]



安装xmanager后,将display指向windows地址启用即可

# export DISPLAY=192.168.183.1:0.0


将设置display的环境变量加入.bash_profile中无法识别,报错如下:

-bash: export: `192.168.183.1:0.0': not a valid identifier


为每次切换至用户无需手工设置,在eclipse目录中编写启动脚本start.sh:

#!/bin/sh
export DISPLAY=192.168.183.1:0.0
./eclipse

每次启动执行start.sh后,开启本机Xmanager-passive

0 0