can sm explain to me how to run testrules.bat en on Windows. The online help says…
Testing rules
The LanguageTool user interface (LanguageToolGUI.jar) needs to be restarted if you have changed the grammar.xml file. Testing rules is faster with our embedded test case feature: just call sh testrules.sh en on Linux or testrules.bat en on Windows, using your language code instead of en. [end of extrait]
I have tried running testrules.bat en in Windows dos cmd window and tried clicking on the file testrules.bat but neither approach seems to work
If the batch file is in, say, C:\Users\My Name\Desktop, you have to cd to the directory first. Just type
cd C:\Users\My Name\Desktop
then do
testrules en
(I assume that the file testrules.bat is in C:\Users\My Name\Desktop\Translation\LanguageTool)
Do this step by step:
Open “C:\Users\My Name\Desktop\Translation Tools” in Windows Explorer
Right click on the folder “LanguageTool” while holding down the shift key
Click on “Open command window here”
The command prompt window should appear and say “C:\Users\My Name\Desktop\Translation\LanguageTool>”
Type “testrules.bat en” (without quotes) and press enter
In case “‘testrules.bat’ is not recognized as an internal or external command, operable program or batch file.” appears, please post what appears when you enter the “dir” command.
‘Java is not recognised as an internal or external command, operable program or batch file’
Java is a pain in the arse. Only last week, I had problems installing a java program but I can garantee you that I have it up and running and have Java programs that are working on my computer.
It might be that your PATH variable does not contain the (correct) path to the executable java file, thus windows cannot find java.exe. Follow the steps at http://www.java.com/en/download/help/path.xml to make sure that PATH contains C:\Program Files\Java (or the like).