启动STS时无法实例化类WelcomeDashboard [英] Unable to instantiate class WelcomeDashboard when starting STS

查看:42
本文介绍了启动STS时无法实例化类WelcomeDashboard的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在VMware Player 6.0.3上运行的OpenSUSE 13.2

OpenSUSE 13.2 running on VMware Player 6.0.3

我今天已经安装了Spring STS 3.6.4,当我启动STS时,出现以下错误:

I've installed Spring STS 3.6.4 today and when I start STS, I get the following error:

插件"org.springsource.ide.eclipse.commons.gettingstarted"无法实例化类"org.springsource.ide.eclipse.commons.gettingstarted.dashboard.WelcomeDashboard".

我已经在Internet上进行搜索,找到了各种引用,这些引用赋予了STS目录777权限,并指出了与它一起运行的Java版本,但这些似乎都无济于事.

I've scoured the Internet and found various references to giving the STS directory 777 permissions and pointing fingers at the version of Java it's running with and none of these seem to help.

我尝试过...

  • 32位和64位OS/STS/Java

  • 32-bit and 64-bit OS/STS/Java

STS 3.6.3 SR1(我在笔记本电脑上的OpenSUSE 13.1上运行正常)

STS 3.6.3 SR1 (I have this running OK on OpenSUSE 13.1 on my notebook)

STS 3.6.4

STS 3.6.4

我尝试过以下版本的Java ...

Ive tried the following versions of Java...

  • java-1.8.0-openjdk-1.8.0(在OS 13.2中是开箱即用的)
  • Oracle网站上的
  • java-1.7.0-openjdk-1.7.0] jdk-7u72
  • Oracle网站上的
  • jdk-7u75
  • Oracle网站上的
  • jdk-8u40
  • java-1.8.0-openjdk-1.8.0 (out of the box with OS 13.2)
  • java-1.7.0-openjdk-1.7.0 ] jdk-7u72 from the Oracle web site
  • jdk-7u75 from the Oracle web site
  • jdk-8u40 from the Oracle web site

启动STS时总是收到相同的错误消息.

Always I get the same error message when STS start up.

如果有人能对这里出了什么问题提供任何帮助,我将非常感激.

I'd be really grateful if someone could shed any light on what's going wrong here.

非常感谢

加里

推荐答案

"WelcomeDashboard"使用JavaFX,在Unix系统上需要Java 1.8和GTK2.默认情况下,Eclipse 4.4与GTK3一起运行.您可以通过设置环境变量"SWT_GTK3 = 0"将其切换回GTK2.实际上,我之所以推荐这样做,是因为Eclipse SWT小部件工具箱的GTK3实现虽然逐渐变得更好,但仍然存在很多问题.因此,设置该变量可能会解决您可能会遇到的其他UI故障.

The 'WelcomeDashboard' uses JavaFX which requires Java 1.8 and GTK2 on unix systems. Eclipse 4.4 runs with GTK3 by default. You can switch it back to GTK2 by setting the environment variable "SWT_GTK3=0". Actually I recommend this because the GTK3 implementation of Eclipse SWT widget toolkit, while slowly getting better, is still quite buggy. So setting that variable will probably solve some other UI glitches you might otherwise experience.

我还建议您使用Oracle JDK 8而不是OpenJDK,因为我听说人们在使用OpenJDK时遇到问题.

I also recommend you use Oracle JDK 8 instead of OpenJDK as I've heard people having problems with OpenJDK.

还要注意,您看到的关于WelcomeDashboard加载失败的错误相对来说是无害的,因为仪表板不是必需的组件,并且它在使用Eclipse表单编辑器而不是JavaFX的旧式仪表板欢迎页面上具有自动回退

Also note that the error you see about the WelcomeDashboard failing to load is relatively harmless as the dashboard is a non-essential component and it has an automatic fallback on the old-style dashboard welcome page which uses Eclipse form editor instead of JavaFX.

因此,除非您真的想要新的仪表板,否则忽略该错误是非常安全的.

So it is pretty safe to just ignore the error, unless you really want the new dashboard.

这篇关于启动STS时无法实例化类WelcomeDashboard的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆