I have installed LanguageTool via HomeBrew:
brew install languagetool
which automatically installs OpenJDK as a dependency
brew install java
which places the Java binaries in /usr/local/opt/openjdk/bin
or /usr/local/opt/openjdk/libexec/openjdk.jdk/Contents/Home/bin/
openjdk 13.0.2 2020-01-14 OpenJDK Runtime Environment (build 13.0.2+8) OpenJDK 64-Bit Server VM (build 13.0.2+8, mixed mode, sharing)
Also for some reason, I had to install the OpenJDK Cask
brew cask install java
now when running java --version
it returns
openjdk 14 2020-03-17 OpenJDK Runtime Environment (build 14+36-1461) OpenJDK 64-Bit Server VM (build 14+36-1461, mixed mode, sharing)
which I think is the Cask version. And when running which java
it returns the "symlink"
/usr/bin/java
which using the readlink
command (from here) returns an origin of
/System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java
Now following the other post on this forum, I tried to set all of these paths in TexStudio
with no avail. I tried all three different paths mentioned above, none working. I would appreciate it if you could help me know how to set the values Java
, LT Path
, and LT Arguments
in the TexStudio > Preferences
> Language Checking
. Thanks for your support in advance.
Best Answer
I think I have solved the problem. Sorta!
So from here, I had to run the LanguageTool GUI
/usr/local/bin/languagetool-gui
activate the port first:then manually run the LanguageTool server on a terminal
/usr/local/bin/languagetool-server
and then settings on TexStudio
The problem is that TexStudio does not run the LanguageTool server as it should.
P.S. The issue has also been described on this page. TexStudio is not able to run the LanguageTool server on its own!.