Back to LanguageTool Homepage - Privacy - Imprint

Exception in Windows 10, new computer

Hi All,

I am currently using LanguageTool with TexStudio in Windows 10. I have an exception when I change the directory to LanguageTool’s folder and type in “java -jar languagetool.jar”.

The detailed exception information is in the following:

Exception in thread “AWT-EventQueue-0” java.lang.NoClassDefFoundError: java/util/logging/Logger
at com.google.common.cache.CacheBuilder.(CacheBuilder.java:209)
at org.languagetool.language.English.(English.java:63)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:332)
at org.languagetool.Languages.createLanguageObjects(Languages.java:181)
at org.languagetool.Languages.getAllLanguages(Languages.java:167)
at org.languagetool.Languages.(Languages.java:50)
at org.languagetool.gui.LanguageComboBoxModel.create(LanguageComboBoxModel.java:61)
at org.languagetool.gui.LanguageComboBox.create(LanguageComboBox.java:43)
at org.languagetool.gui.LanguageComboBox.create(LanguageComboBox.java:37)
at org.languagetool.gui.Main.createGUI(Main.java:379)
at org.languagetool.gui.Main.access$1700(Main.java:144)
at org.languagetool.gui.Main$7.run(Main.java:1198)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:389)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: java.lang.ClassNotFoundException: java.util.logging.Logger
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
… 26 more

Thanks for your hep!
Edwin

Hi Edwin, are you using the latest version of LT? Maybe you could re-download it from languagetool.org. The error message looks as if something is wrong with your LT package.

Hi Dinel, I am using LanguageTool-4.6. I think it might not be the version issue.

What does java -version print if you enter it on the command line?

D:\Software\LanguageTool-4.6>java -version
java version “12.0.2” 2019-07-16
Java™ SE Runtime Environment (build 12.0.2+10)
Java HotSpot™ 64-Bit Server VM (build 12.0.2+10, mixed mode)

I haven’t tried LT with Java 12 yet. Java 8 to 11 should work fine. It would be good to know whether Java 12 causes this issue.