Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SOLVED] Docear does not launch even with java8 in voidlinux #517

Closed
zenny opened this issue Mar 14, 2020 · 1 comment
Closed

[SOLVED] Docear does not launch even with java8 in voidlinux #517

zenny opened this issue Mar 14, 2020 · 1 comment

Comments

@zenny
Copy link

zenny commented Mar 14, 2020

Hi,

I tried to run Docear with java8 in voidlinux:

...
STDERR: java.lang.NoClassDefFoundError: org/omg/CORBA/portable/UnknownException
STDERR: 	at org.docear.plugin.services.features.user.DocearUserController.<init>(DocearUserController.java:42)
STDERR: 	at org.docear.plugin.services.ServiceController.initialize(ServiceController.java:86)
STDERR: 	at org.docear.plugin.services.Activator.startService(Activator.java:29)
STDERR: 	at org.docear.plugin.core.Activator.startPluginServices(Activator.java:67)
STDERR: 	at org.docear.plugin.core.Activator.startPlugin(Activator.java:35)
STDERR: 	at org.freeplane.plugin.workspace.Activator.startPluginServices(Activator.java:83)
STDERR: 	at org.freeplane.plugin.workspace.Activator$2.installExtension(Activator.java:45)
STDERR: 	at org.freeplane.main.osgi.ActivatorImpl.startFramework(ActivatorImpl.java:208)
STDERR: 	at org.freeplane.main.osgi.ActivatorImpl.start(ActivatorImpl.java:79)
STDERR: 	at org.freeplane.main.osgi.Activator.start(Activator.java:36)
STDERR: 	at org.knopflerfish.framework.BundleImpl.start0(BundleImpl.java:374)
STDERR: 	at org.knopflerfish.framework.PermissionOps.callStart0(PermissionOps.java:215)
STDERR: 	at org.knopflerfish.framework.BundleImpl.start(BundleImpl.java:321)
STDERR: 	at org.knopflerfish.framework.StartLevelImpl.increaseStartLevel(StartLevelImpl.java:285)
STDERR: 	at org.knopflerfish.framework.StartLevelImpl$1.run(StartLevelImpl.java:217)
STDERR: 	at org.knopflerfish.framework.StartLevelImpl.run(StartLevelImpl.java:178)
STDERR: 	at java.base/java.lang.Thread.run(Thread.java:834)
STDERR: Caused by: java.lang.ClassNotFoundException: org.omg.CORBA.portable.UnknownException
STDERR: 	at org.knopflerfish.framework.BundleClassLoader.findClass(BundleClassLoader.java:339)
STDERR: 	at org.knopflerfish.framework.BundleClassLoader.loadClass(BundleClassLoader.java:438)
STDERR: 	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
STDERR: 	... 17 more
STDOUT: ## DEBUG: errors - FrameworkErrorEvent bundle #1
STDOUT: ## DEBUG: errors - FrameworkErrorEvent throwable: 
STDERR: org.osgi.framework.BundleException: BundleActivator start failed
STDERR: 	at org.knopflerfish.framework.BundleImpl.start0(BundleImpl.java:419)
STDERR: 	at org.knopflerfish.framework.PermissionOps.callStart0(PermissionOps.java:215)
STDERR: 	at org.knopflerfish.framework.BundleImpl.start(BundleImpl.java:321)
STDERR: 	at org.knopflerfish.framework.StartLevelImpl.increaseStartLevel(StartLevelImpl.java:285)
STDERR: 	at org.knopflerfish.framework.StartLevelImpl$1.run(StartLevelImpl.java:217)
STDERR: 	at org.knopflerfish.framework.StartLevelImpl.run(StartLevelImpl.java:178)
STDERR: 	at java.base/java.lang.Thread.run(Thread.java:834)
STDERR: Caused by: java.lang.NoClassDefFoundError: org/omg/CORBA/portable/UnknownException
STDERR: 	at org.docear.plugin.services.features.user.DocearUserController.<init>(DocearUserController.java:42)
STDERR: 	at org.docear.plugin.services.ServiceController.initialize(ServiceController.java:86)
STDERR: 	at org.docear.plugin.services.Activator.startService(Activator.java:29)
STDERR: 	at org.docear.plugin.core.Activator.startPluginServices(Activator.java:67)
STDERR: 	at org.docear.plugin.core.Activator.startPlugin(Activator.java:35)
STDERR: 	at org.freeplane.plugin.workspace.Activator.startPluginServices(Activator.java:83)
STDERR: 	at org.freeplane.plugin.workspace.Activator$2.installExtension(Activator.java:45)
STDERR: 	at org.freeplane.main.osgi.ActivatorImpl.startFramework(ActivatorImpl.java:208)
STDERR: 	at org.freeplane.main.osgi.ActivatorImpl.start(ActivatorImpl.java:79)
STDERR: 	at org.freeplane.main.osgi.Activator.start(Activator.java:36)
STDERR: 	at org.knopflerfish.framework.BundleImpl.start0(BundleImpl.java:374)
STDERR: 	... 6 more
STDERR: Caused by: java.lang.ClassNotFoundException: org.omg.CORBA.portable.UnknownException
STDERR: 	at org.knopflerfish.framework.BundleClassLoader.findClass(BundleClassLoader.java:339)
STDERR: 	at org.knopflerfish.framework.BundleClassLoader.loadClass(BundleClassLoader.java:438)
STDERR: 	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
STDERR: 	... 17 more
STDOUT: Nested bundle exception:
STDERR: java.lang.NoClassDefFoundError: org/omg/CORBA/portable/UnknownException
STDERR: 	at org.docear.plugin.services.features.user.DocearUserController.<init>(DocearUserController.java:42)
STDERR: 	at org.docear.plugin.services.ServiceController.initialize(ServiceController.java:86)
STDERR: 	at org.docear.plugin.services.Activator.startService(Activator.java:29)
STDERR: 	at org.docear.plugin.core.Activator.startPluginServices(Activator.java:67)
STDERR: 	at org.docear.plugin.core.Activator.startPlugin(Activator.java:35)
STDERR: 	at org.freeplane.plugin.workspace.Activator.startPluginServices(Activator.java:83)
STDERR: 	at org.freeplane.plugin.workspace.Activator$2.installExtension(Activator.java:45)
STDERR: 	at org.freeplane.main.osgi.ActivatorImpl.startFramework(ActivatorImpl.java:208)
STDERR: 	at org.freeplane.main.osgi.ActivatorImpl.start(ActivatorImpl.java:79)
STDERR: 	at org.freeplane.main.osgi.Activator.start(Activator.java:36)
STDERR: 	at org.knopflerfish.framework.BundleImpl.start0(BundleImpl.java:374)
STDERR: 	at org.knopflerfish.framework.PermissionOps.callStart0(PermissionOps.java:215)
STDERR: 	at org.knopflerfish.framework.BundleImpl.start(BundleImpl.java:321)
STDERR: 	at org.knopflerfish.framework.StartLevelImpl.increaseStartLevel(StartLevelImpl.java:285)
STDERR: 	at org.knopflerfish.framework.StartLevelImpl$1.run(StartLevelImpl.java:217)
STDERR: 	at org.knopflerfish.framework.StartLevelImpl.run(StartLevelImpl.java:178)
STDERR: 	at java.base/java.lang.Thread.run(Thread.java:834)
STDERR: Caused by: java.lang.ClassNotFoundException: org.omg.CORBA.portable.UnknownException
STDERR: 	at org.knopflerfish.framework.BundleClassLoader.findClass(BundleClassLoader.java:339)
STDERR: 	at org.knopflerfish.framework.BundleClassLoader.loadClass(BundleClassLoader.java:438)
STDERR: 	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
STDERR: 	... 17 more
STDOUT: Framework launched

According to #507 and http://www.docear.org/support/forums/docear-support-forums-group3/bug-reports-forum6/docear-does-not-start-on-archlinux-thread1583/, it has to do with Java version. But in my case openjdk-jre 8 is activated via asdf locally.

$ java -version
openjdk version "1.8.0_242"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_242-b08)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.242-b08, mixed mode)

Thus it does not seem java version issue in my case. Any input?

Cheers,
/z

@zenny
Copy link
Author

zenny commented Mar 14, 2020

SOLVED: Installing Java 7 worked:

# xbps-install -S openjdk7-bootstrap

Once installed, I exported the java environment for the specific instance:

$ JAVA_HOME="/usr/lib/jvm/java-1.7-openjdk/jre" ./docear.sh

It worked.

NB: Docear 1.2 appears not to work with anything above java v7.

@zenny zenny changed the title Docear does not launch even with java8 in voidlinux [SOLVED] Docear does not launch even with java8 in voidlinux Mar 14, 2020
@zenny zenny closed this as completed Mar 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant