Need help installing local LanguageTool server for grammar checker
I'm in the process of testing the Grammar Checker 0.6 add-on for Thunderbird 38.6.0 for Windows 7. The add-on's "more information" strongly recommends to "setup [a] local LT server" and references http://nuald.blogspot.com/2009/10/thunderbird-grammar-checker-extension.html for how to do this. So, I'm game to try, but stuck right out of the gate.
The first suggestion in that link is to "download and start the GUI LanguageTool that works in the server mode via browser:" http://languagetool.org/webstart/web/LanguageTool.jnlp. Not sure what platform the author assumes (the page doesn't say), but when I go to that link from Firefox on Windows I get a dialog to either save the file or open with some program. Hmmm. I guess Windows/Firefox doesn't know what to do with a jnlp file. Neither do I.
The next suggested alternative is to "start the application from the command line:"
$ javaws http://www.languagetool.org/webstart/web/LanguageTool.jnlp
The '$' at the front implies Unix, which is OK because I'd like to install this LT server on the Samba file server anyway. But, when I run the command I get the error: "(javaws:25024): Gtk-WARNING **: cannot open display:". I'm guessing that is because the suggested "command line" is actually supposed to be an X-term, right? This server does not have GUI desktops installed as there are no actual users.
Can someone give me a nudge in the right direction to getting this installed on a non-X server, or is that not possible?
すべての返信 (4)
I think you will get a more informed response on the newsgroups on news.mozilla.org
I figured out a workaround, described here: http://www.linuxquestions.org/questions/linux-software-2/need-help-installing-local-languagetool-server-for-thunderbird-grammar-checker-4175574579/#post5515242
An FYI... Jnlp files are java (tm) web start launcher
I note that on the blog posting the link to the JNLP file originated from three lines above the link states.
The simplest way to start the server is using Java Web Start (requires Java 6.0 or later)
Perhaps if you installed the prerequisite software you would not have an issue and would not be looking for a "workaround"
Just as an aside, a GUI is defacto standard these days, even if you do not use it. There is less guessing if you install one. Or X windows at least.
Matt said
An FYI... Jnlp files are java (tm) web start launcher I note that on the blog posting the link to the JNLP file originated from three lines above the link states.The simplest way to start the server is using Java Web Start (requires Java 6.0 or later)Perhaps if you installed the prerequisite software you would not have an issue and would not be looking for a "workaround"
Thanks, but I'm not sure I'm willing to invest the time to experiment with that. I looked at the Java Web Start page https://java.com/en/download/faq/java_webstart.xml. Supposedly, I already have JWS since I do have Java 5.0 or later. Still, I'd need to do some additional research to figure out how it all needs to be set up and run. That page says, "The Java Web Start software is launched automatically, when a Java application using Java Web Start technology is downloaded for the first time." Not sure to which platform they are referring, but that certainly wasn't happening for me.
Just as an aside, a GUI is defacto standard these days, even if you do not use it. There is less guessing if you install one. Or X windows at least.
I didn't travel down the installation road far enough to know what it needs X for. Just installation? Does it send grammar-checks to a workstation X dialog? In the case of the latter, the client workstations using Thunderbird are Windows, not X-terms.
As mentioned, our Linux servers -- although X software is installed -- do not use GUI's. These are servers locked in an equipment room and are generally interacted with remotely. To use the http://nuald.blogspot.com/2009/10/thunderbird-grammar-checker-extension.html formula it looks like I'd have to figure out how to install and get running Java Web Start (alongside, but not interfering with Apache/Tomcat), configure an X-desktop and run javaws from there, then figure out how to connect to all that from Windows. Probably all doable, but looks like a lot of work for a grammar checker. The web instructions simply aren't step-by-step enough for me.
By contrast, I think the less than 80 lines of jsp code I wrote was not only far simpler (requiring no installation or configuration of anything other than the LanguageTool archive), but makes Language tool more useable: I can turn off the spell checker since there is already a better spell checker in Thunderbird, and LanguageTool goes bananas spewing all sorts of garbage when it hits an html signature. In can easily chop off the signature before running the checker.
Generally, I don't expect to spend a day or more researching and installing additional software simply to get an email add-on installed. I'll stick with my solution and use the saved time to figure out why LanguageTool doesn't catch simple tense agreement problems like:
I go to the store and I bought milk. I goed to the store and I bought milk. I am went ...
この投稿は Mark Foley により