question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Standalone on linux can't start: java.lang.ClassNotFoundException: org.w3c.dom.ls.DocumentLS

See original GitHub issue

JabRef version

5.5 (latest release)

Operating system

GNU / Linux

Details on version and operating system

Linux Mint 20.1 MATE

Checked with the latest development build

  • I made a backup of my libraries before testing the latest development version.
  • I have tested the latest development version and the problem persists

Steps to reproduce the behaviour

  1. Download JabRef-5.6-portable_linux.tar.gz
  2. tar xvf JabRef-5.6-portable_linux.tar.gz
  3. cd JabRef/bin
  4. ./JabRef

Expected result: application launches.

Actual result: Uncaught exception stack trace, application does not launch.

Output:

Apr 06, 2022 1:57:27 PM com.sun.javafx.application.PlatformImpl startup WARNING: Unsupported JavaFX configuration: classes were loaded from ‘module org.jabref.merged.module’, isAutomatic: false, isOpen: true Exception in Application start method 2022-04-06 13:57:28 [main] org.jabref.gui.FallbackExceptionHandler.uncaughtException() ERROR: Uncaught exception occurred in Thread[main,5,main]: java.lang.RuntimeException: Exception in Application start method at org.jabref.merged.module@5.6.144/com.sun.javafx.application.LauncherImpl.launchApplication1(Unknown Source) at org.jabref.merged.module@5.6.144/com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(Unknown Source) at java.base/java.lang.Thread.run(Unknown Source) Caused by: java.lang.NoClassDefFoundError: org/w3c/dom/ls/DocumentLS at java.base/java.lang.ClassLoader.defineClass1(Native Method) at java.base/java.lang.ClassLoader.defineClass(Unknown Source) at java.base/java.security.SecureClassLoader.defineClass(Unknown Source) at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(Unknown Source) at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(Unknown Source) at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(Unknown Source) at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source) at java.base/java.lang.ClassLoader.loadClass(Unknown Source) at org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(DocumentBuilderImpl.java:102) at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(DocumentBuilderFactoryImpl.java:88) at java.prefs/java.util.prefs.XmlSupport.loadPrefsDoc(Unknown Source) at java.prefs/java.util.prefs.XmlSupport.importMap(Unknown Source) at java.prefs/java.util.prefs.FileSystemPreferences$6.run(Unknown Source) at java.prefs/java.util.prefs.FileSystemPreferences$6.run(Unknown Source) at java.base/java.security.AccessController.doPrivileged(Unknown Source) at java.prefs/java.util.prefs.FileSystemPreferences.loadCache(Unknown Source) at java.prefs/java.util.prefs.FileSystemPreferences.initCacheIfNecessary(Unknown Source) at java.prefs/java.util.prefs.FileSystemPreferences.getSpi(Unknown Source) at java.prefs/java.util.prefs.AbstractPreferences.get(Unknown Source) at org.jabref@5.6.144/org.jabref.preferences.JabRefPreferences.get(Unknown Source) at org.jabref@5.6.144/org.jabref.preferences.JabRefPreferences.updateLanguage(Unknown Source) at org.jabref@5.6.144/org.jabref.preferences.JabRefPreferences.getLanguage(Unknown Source) at org.jabref@5.6.144/org.jabref.preferences.JabRefPreferences.<init>(Unknown Source) at org.jabref@5.6.144/org.jabref.preferences.JabRefPreferences.getInstance(Unknown Source) at org.jabref@5.6.144/org.jabref.gui.JabRefMain.start(Unknown Source) at org.jabref.merged.module@5.6.144/com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(Unknown Source) at org.jabref.merged.module@5.6.144/com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(Unknown Source) at org.jabref.merged.module@5.6.144/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(Unknown Source) at java.base/java.security.AccessController.doPrivileged(Unknown Source) at org.jabref.merged.module@5.6.144/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(Unknown Source) at org.jabref.merged.module@5.6.144/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source) at org.jabref.merged.module@5.6.144/com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method) at org.jabref.merged.module@5.6.144/com.sun.glass.ui.gtk.GtkApplication.lambda$runLoop$11(Unknown Source) … 1 more Caused by: java.lang.ClassNotFoundException: org.w3c.dom.ls.DocumentLS at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source) at java.base/java.lang.ClassLoader.loadClass(Unknown Source) … 35 more

Appendix

Log File
Paste an excerpt of your log file here

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
ThiloteEcommented, Apr 7, 2022

Also check out this thread: https://discourse.jabref.org/t/jabref-5-1-linux-portable/2293

Locate JabRef.bat (Windows) or JabRef (Linux, Mac OS). In the portable versions, this is JabRef-5.0-portable_windows\JabRef\runtime\bin\JabRef.bat and JabRef-5.0-portable_linux\JabRef\lib\runtime\bin\JabRef.

Do not use JabRef\JabRef.exe or bin/JabRef

0reactions
mlepcommented, Apr 7, 2022

Thank you for the follow-up!

Read more comments on GitHub >

github_iconTop Results From Across the Web

java - NoClassDefFoundError: org/w3c/dom/ls/DocumentLS
Deployment. Now I move this .jar into my server and try to run it with the following command: java -jar myJar.
Read more >
java.lang.NoClassDefFoundError: org/w3c/dom/ls ...
java.lang.NoClassDefFoundError: org/w3c/dom/ls/DocumentLS ... Perhaps you're missing xml-apis.jar from Java XML Pack. Best regards, Mark C. Orciuch Next ...
Read more >
org/w3c/dom/ls/DocumentLS causing failures in xalan conf
Running the xalan conf tests on jaxp1.2.3 b01 (nightly) produces a huge number of failures. Also the jaxp product tests are failing at...
Read more >
Troubleshooting
Exception in thread "main" java.lang.NoClassDefFoundError: org/w3c/dom/ls/DocumentLS at java.base/java.lang.ClassLoader.defineClass1(Native Method) at ...
Read more >
Eclipse java lang NoClassDefFoundError - Selenium - Edureka
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/http/config/RegistryBuilder at org.openqa.selenium.remote.internal.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found