Back to LanguageTool Homepage - Privacy - Imprint

OS X Java/version issues

I just installed LanguageTool Version 2.9, 2015-03-30. When I try to use it (standalone), I get the error below. I have checked the issues/checklist and run the Java for OS X installer as instructed there.

My Java pref panel shows Java 8, update 45.

java -version from the command line says:

java version “1.6.0_65”
Java™ SE Runtime Environment (build 1.6.0_65-b14-466.1-11M4716)
Java HotSpot™ 64-Bit Server VM (build 20.65-b04-466.1, mixed mode)


Exception in thread “main” java.lang.UnsupportedClassVersionError: org/languagetool/gui/Main : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(
at java.lang.ClassLoader.defineClass(
at Method)
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(

That means you’re still on Java 6, and LT requires Java 7 or later. More than one Java can be installed at the same time, but I don’t know how to configure OS X to use one over the other.

That’s what I thought the “Java for OS X” installer was doing (installing a later version of Java). I don’t get how the Java panel shows version 8 but the command line shows 6, nor how to fix it. Anyone have an idea?

Answered my own question: needed to install “Java SE” from the Oracle website: