CentOS安装Eclipse,Eclipse启动时报错

在CentOS系统中安装Eclipse时遇到了三个问题:弹窗、Java警告和无法打开显示的错误。通过修改xshell属性解决了弹窗问题,注释掉eclipse.ini中的特定选项消除了Java警告,并通过检查日志和尝试以root用户登录解决了显示错误。最终成功启动了Eclipse。
摘要由CSDN通过智能技术生成

出现的3个错误

1.出现弹窗:
2.出现警告:Java HotSpot™ 64-Bit Server VM warning: ignoring option MaxPermSize=256m;
3.以及报错Eclipse: 无法打开显示:

CentOS安装Eclipse,参考链接:

https://blog.csdn.net/sinat_40875078/article/details/109045387

1.解决弹窗

在这里插入图片描述
打开xshell属性的窗口,修改如下:
在这里插入图片描述

2.解除警告

这里使用xshell连接了hadoop102
在/opt/module/eclipse/目录下:进入eclipse.ini
在这里插入图片描述
注释3处如下,之后就没有警告了
在这里插入图片描述

3.解决报错

在这里插入图片描述
查看日志文件:

!ENTRY org.eclipse.osgi 4 0 2022-04-22 11:11:41.482
!MESSAGE Application error
!STACK 1
org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]
at org.eclipse.swt.SWT.error(SWT.java:4423)
	at org.eclipse.swt.widgets.Display.createDisplay(Display.java:925)
	at org.eclipse.swt.widgets.Display.create(Display.java:909)
	at org.eclipse.swt.graphics.Device.<init>(Device.java:156)
	at org.eclipse.swt.widgets.Display.<init>(Display.java:507)
	at org.eclipse.swt.widgets.Display.<init>(Display.java:498)
	at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:691)
	at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:162)

看到有很多界面的组件失败了,于是我就回到了虚拟机启动eclipse:
在这里插入图片描述
成功启动:
在这里插入图片描述
最近又发现,如果用root用户登录,就可以直接打开了
在这里插入图片描述

  • 3
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

榆钱不知秋

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值