[Ubuntu 20.04]DevCenter 启动时出现错误 java.lang.NoClassDefFoundError: org/w3c/dom/stylesheets/StyleSheet

问题描述 投票:0回答:2

当我尝试在 Ubuntu 20.04 上运行 DevCenter 1.6.0 时。我收到错误消息。然后我转到 .devcenter/.metadata/.log 和日志。任何人如何解决这个问题,请帮助我。非常感谢。

    !SESSION 2020-08-03 15:17:46.499 -----------------------------------------------
eclipse.buildId=unknown
java.version=11.0.8
java.vendor=Ubuntu
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments:  -os linux -ws gtk -arch x86_64 -data @user.home/.devcenter

!ENTRY org.eclipse.core.resources 2 10035 2020-08-03 15:17:47.433
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.

!ENTRY org.eclipse.osgi 4 0 2020-08-03 15:17:48.159
!MESSAGE Application error
!STACK 1
java.lang.NoClassDefFoundError: org/w3c/dom/stylesheets/StyleSheet
    at org.eclipse.e4.ui.css.swt.internal.theme.ThemeEngineManager.getCSSSWTEngine(ThemeEngineManager.java:41)
    at org.eclipse.e4.ui.css.swt.internal.theme.ThemeEngineManager.getEngineForDisplay(ThemeEngineManager.java:30)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createThemeEngine(PartRenderingEngine.java:1428)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.initializeStyling(PartRenderingEngine.java:1281)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1036)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
    at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
    at com.datastax.devcenter.rcp.Application.start(Application.java:22)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
Caused by: java.lang.ClassNotFoundException: org.w3c.dom.stylesheets.StyleSheet cannot be found by org.eclipse.e4.ui.css.core_0.10.100.v20140424-2042
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:432)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:345)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:337)
    at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
    ... 26 more
cassandra ubuntu-20.04
2个回答
5
投票

DevCenter 长期处于维护模式,它被设计为与 Java 7、max 8 配合使用,因此它无法与您拥有的 Java 11 配合使用。 解决方法是安装 Java 8 并将其用于 DevCenter。 另一种可能性是使用支持 Cassandra 的 Apache Zeppelin - 尽管它可能不具备 DevCenter 的完整功能,但它应该非常接近它,并且支持与其他技术(例如 Spark 等)配合使用。我建议采用Zeppelin 0.9.0-preview2 于上周发布,在 Cassandra 支持方面有很多改进。


1
投票

由于 DevCenter 使用 Eclipse IDE,您可以在

-vm
文件中指定
devcenter.ini
二进制 jdk 库,就像使用 Eclipse IDE 一样。
我通过添加以下内容解决了这个问题:

-vm
C:\Program Files\Java\jdk1.8.0_211\bin
© www.soinside.com 2019 - 2024. All rights reserved.