Back to LanguageTool Homepage - Privacy - Imprint

Build Failure

Hi,

I have tried to build the project several ways but I haven’t found a way around to get rid of the failure coming in the build of languagetool-http-server. This is the error message that i get;

error message=“beolingusFile not found: C:Usersmariam.riazIdeaProjectslanguagetoollanguagetool-server…languagetool-standalonesrc est esourcesbeolingus_test.txt” type=“java.lang.IllegalArgumentException”><![CDATA[java.lang.IllegalArgumentException: beolingusFile not found: C:Usersmariam.riazIdeaProjectslanguagetoollanguagetool-server…languagetool-standalonesrc est
esourcesbeolingus_test.txt

I believe that the path defined for this test is for linux and because of that it not being able to execute in windows and cannot find the path to the file. Also, if i skip the built of http-server the standalone version doesn’t compile and then when i try to access the commandline langugae tool with the commad java -jar languagetool-commandline-version- SNAPTSHOT it gives me this error;

Error: A JNI error has occurred, please check your installation and try again
Exception in thread “main” java.lang.NoClassDefFoundError: org/languagetool/JLanguageTool
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
at java.lang.Class.privateGetMethodRecursive(Unknown Source)
at java.lang.Class.getMethod0(Unknown Source)
at java.lang.Class.getMethod(Unknown Source)
at sun.launcher.LauncherHelper.validateMainClass(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.languagetool.JLanguageTool
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
… 7 more

Can someone please help me, if someone has experience with building language tool in windows.

I’ve committed a potential fix for the file path issue, please try again.

I made the changes mentioned in commit, it passed the http server build now but is stuck in languagetool-wikipedia with the followinf error

<![CDATA[java.lang.RuntimeException: Could not set up text filter

Caused by: java.lang.NullPointerException: Cannot invoke “java.lang.reflect.Method.invoke(Object, Object[])” because “com.sun.xml.bind.v2.runtime.reflect.opt.Injector.defineClass” is null

Sorry, I don’t have a Windows system here to reproduce it. Maybe you can debug this yourself?

Hi,

When i try to run the standalone version jar file from command prompt i get the following error;

Error: A JNI error has occurred, please check your installation and try again
Exception in thread “main” java.lang.NoClassDefFoundError: org/languagetool/gui/SavablePanel
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
at java.lang.Class.privateGetMethodRecursive(Unknown Source)
at java.lang.Class.getMethod0(Unknown Source)
at java.lang.Class.getMethod(Unknown Source)
at sun.launcher.LauncherHelper.validateMainClass(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.languagetool.gui.SavablePanel
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
… 19 more

can you guide me in a direction from where it might be coming so I can try to debug it?