Error using Freeling API

Forums:

Hello
I am trying to create a spanish PoS tagger using Freeling for Gate. But when I try to run it in Gate I receive this error.

java.lang.UnsatisfiedLinkError: edu.upc.freeling.freelingJNI.new_HmmTagger__SWIG_1(Ljava/lang/String;ZJ)J
at edu.upc.freeling.freelingJNI.new_HmmTagger__SWIG_1(Native Method)
at edu.upc.freeling.HmmTagger.(HmmTagger.java:43)
at gate.FreelingSpanishPOS.init(FreelingSpanishPOS.java:87)
at gate.Factory.createResource(Factory.java:432)
at gate.gui.NewResourceDialog$4.run(NewResourceDialog.java:270)
at java.lang.Thread.run(Thread.java:748)

I know that is an error inside Gate, But i think this is very related with freeling and his API.

Thanks in advance

We don't provide Gate integration, so I can't tell where the error may be.

You should diagnose where the problem comes from:
- Make sure the JAva API is properly built. Did you build it yourself or you got it built?
- Make sure the Java API works properly outside gate (use Analyzer.java example in the APIs folder)
- If all that works, the problem is in Gate integration. My first guess would be that FreeLing API jar is missing from the classpath, but it could be a number of other things.

javilm's picture

Hello, thanks in advantage for your support.
I built the API by myself, even after this error ,I built it again, but the same error was shown. I will try your other recommendations to clearify if the error is caused by Gate or by Freeling.

Thank you!

Once the API is built, can you compile and run the Analyzer.java program that is in APIs/java folder?

javilm's picture

Hello lluisp.

Yes, I run the program in eclipse and also with the console and it runs without problems.

So, the problem is GATE integration.
When you integrate FreeLing in GATE, I guess you wrote a wrapper. Make sure the wrapper works outside of GATE.
If it does, make sure you configure your GATE environment to have the right CLASSPATHS and PATHS to locate the API jar and library.

javilm's picture

Helo lluisp
The problem I told you before was fixed adding the two first lines of the analyzer.java
System.loadLibrary( "freeling_javaAPI" );
Util.initLocale( "default" );

After that I decided to use the hole code of the Analyzer.java in my wrapper and the line when I get the error is in

Util.initLocale( "default" );
What is thr purpose of this line?

Thanks in advance

javilm's picture

I want to add that the problem I told you the other day was fixed ading those two lines and the part of the code about the Maco options

javilm's picture

Hello, trying to redo all my work, I tried to execute Analyzer.java creating an Eclipse project and adding freeling.java. I get an error after typping a sentence to analyze.
I use
SWIGDIR ?= /usr/share/swig3.0
JAVADIR ?= /usr/lib/jvm/java-8-oracle
to make the java API

and the error I get is

La perro de san roque no tiene rabo.
-------- LANG_IDENT results -----------
Language detected (from first line in text): es
*** Error in `/usr/lib/jvm/java-8-oracle/bin/java': malloc(): memory corruption: 0x00007f5f39aed5a0 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f5fb48287e5]
/lib/x86_64-linux-gnu/libc.so.6(+0x8181e)[0x7f5fb483281e]
/lib/x86_64-linux-gnu/libc.so.6(__libc_malloc+0x54)[0x7f5fb48345d4]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(_Znwm+0x18)[0x7f5f88163e78]
/lib/libfreeling_javaAPI.so(_ZN9__gnu_cxx13new_allocatorISt10_List_nodeIN8freeling4wordEEE8allocateEmPKv+0x4d)[0x7f5f88adb2df]
/lib/libfreeling_javaAPI.so(_ZNSt7__cxx1110_List_baseIN8freeling4wordESaIS2_EE11_M_get_nodeEv+0x22)[0x7f5f88ad735e]
/lib/libfreeling_javaAPI.so(_ZNSt7__cxx114listIN8freeling4wordESaIS2_EE14_M_create_nodeIIRKS2_EEEPSt10_List_nodeIS2_EDpOT_+0x1d)[0x7f5f88acfc03]
/lib/libfreeling_javaAPI.so(_ZNSt7__cxx114listIN8freeling4wordESaIS2_EE9_M_insertIIRKS2_EEEvSt14_List_iteratorIS2_EDpOT_+0x32)[0x7f5f88ac5480]
/lib/libfreeling_javaAPI.so(_ZNSt7__cxx114listIN8freeling4wordESaIS2_EE12emplace_backIJRKS2_EEEvDpOT_+0x41)[0x7f5f88ad34a5]
/lib/libfreeling_javaAPI.so(_ZNSt7__cxx114listIN8freeling4wordESaIS2_EE22_M_initialize_dispatchISt20_List_const_iteratorIS2_EEEvT_S8_St12__false_type+0x49)[0x7f5f88acb04d]
/lib/libfreeling_javaAPI.so(_ZNSt7__cxx114listIN8freeling4wordESaIS2_EEC1ERKS4_+0x76)[0x7f5f88abef8a]
/lib/libfreeling_javaAPI.so(Java_edu_upc_freeling_freelingJNI_Tokenizer_1tokenize_1_1SWIG_10+0x200)[0x7f5f88a99bbc]
[0x7f5f9d017a34]
======= Memory map: ========
00400000-00401000 r-xp 00000000 08:08 399326 /usr/lib/jvm/java-8-oracle/bin/java
00600000-00601000 rw-p 00000000 08:08 399326 /usr/lib/jvm/java-8-oracle/bin/java
01f86000-01fa7000 rw-p 00000000 00:00 0 [heap]
a4400000-a8180000 rw-p 00000000 00:00 0
a8180000-e1700000 ---p 00000000 00:00 0
e1700000-e3580000 rw-p 00000000 00:00 0
e3580000-100000000 ---p 00000000 00:00 0
100000000-100080000 rw-p 00000000 00:00 0
100080000-140000000 ---p 00000000 00:00 0
7f5f38000000-7f5f3b06e000 rw-p 00000000 00:00 0
7f5f3b06e000-7f5f3c000000 ---p 00000000 00:00 0
7f5f3c000000-7f5f3c021000 rw-p 00000000 00:00 0
7f5f3c021000-7f5f40000000 ---p 00000000 00:00 0
7f5f40000000-7f5f48000000 rw-p 00000000 00:00 0
7f5f48000000-7f5f50000000 rw-p 00000000 00:00 0
7f5f50000000-7f5f58000000 rw-p 00000000 00:00 0
7f5f58000000-7f5f5c000000 rw-p 00000000 00:00 0
7f5f5ec9f000-7f5f5f760000 rw-p 00000000 00:00 0
7f5f5f760000-7f5f61016000 r-xp 00000000 08:08 544093 /usr/lib/x86_64-linux-gnu/libicudata.so.55.1
7f5f61016000-7f5f61215000 ---p 018b6000 08:08 544093 /usr/lib/x86_64-linux-gnu/libicudata.so.55.1
7f5f61215000-7f5f61216000 r--p 018b5000 08:08 544093 /usr/lib/x86_64-linux-gnu/libicudata.so.55.1
7f5f61216000-7f5f61217000 rw-p 018b6000 08:08 544093 /usr/lib/x86_64-linux-gnu/libicudata.so.55.1
7f5f61217000-7f5f61230000 r-xp 00000000 08:08 285404 /lib/x86_64-linux-gnu/libz.so.1.2.8
7f5f61230000-7f5f6142f000 ---p 00019000 08:08 285404 /lib/x86_64-linux-gnu/libz.so.1.2.8
7f5f6142f000-7f5f61430000 r--p 00018000 08:08 285404 /lib/x86_64-linux-gnu/libz.so.1.2.8
7f5f61430000-7f5f61431000 rw-p 00019000 08:08 285404 /lib/x86_64-linux-gnu/libz.so.1.2.8
7f5f61431000-7f5f615b0000 r-xp 00000000 08:08 544095 /usr/lib/x86_64-linux-gnu/libicuuc.so.55.1
7f5f615b0000-7f5f617b0000 ---p 0017f000 08:08 544095 /usr/lib/x86_64-linux-gnu/libicuuc.so.55.1
7f5f617b0000-7f5f617c0000 r--p 0017f000 08:08 544095 /usr/lib/x86_64-linux-gnu/libicuuc.so.55.1
7f5f617c0000-7f5f617c1000 rw-p 0018f000 08:08 544095 /usr/lib/x86_64-linux-gnu/libicuuc.so.55.1
7f5f617c1000-7f5f617c5000 rw-p 00000000 00:00 0
7f5f617c5000-7f5f61a17000 r-xp 00000000 08:08 544091 /usr/lib/x86_64-linux-gnu/libicui18n.so.55.1
7f5f61a17000-7f5f61c17000 ---p 00252000 08:08 544091 /usr/lib/x86_64-linux-gnu/libicui18n.so.55.1
7f5f61c17000-7f5f61c26000 r--p 00252000 08:08 544091 /usr/lib/x86_64-linux-gnu/libicui18n.so.55.1
7f5f61c26000-7f5f61c27000 rw-p 00261000 08:08 544091 /usr/lib/x86_64-linux-gnu/libicui18n.so.55.1
7f5f61c27000-7f5f61c71000 r-xp 00000000 08:08 399834 /usr/local/lib/libfoma-0.9.18.so
7f5f61c71000-7f5f61e70000 ---p 0004a000 08:08 399834 /usr/local/lib/libfoma-0.9.18.so
7f5f61e70000-7f5f61e71000 r--p 00049000 08:08 399834 /usr/local/lib/libfoma-0.9.18.so
7f5f61e71000-7f5f61e72000 rw-p 0004a000 08:08 399834 /usr/local/lib/libfoma-0.9.18.so
7f5f61e72000-7f5f6368e000 rw-p 00000000 00:00 0
7f5f6368e000-7f5f636dd000 r-xp 00000000 08:08 397663 /usr/local/lib/libtreeler-0.4.so
7f5f636dd000-7f5f638dc000 ---p 0004f000 08:08 397663 /usr/local/lib/libtreeler-0.4.so
7f5f638dc000-7f5f638dd000 r--p 0004e000 08:08 397663 /usr/local/lib/libtreeler-0.4.so
7f5f638dd000-7f5f638de000 rw-p 0004f000 08:08 397663 /usr/local/lib/libtreeler-0.4.so
7f5f638de000-7f5f638e1000 r-xp 00000000 08:08 530407 /usr/lib/x86_64-linux-gnu/libboost_system.so.1.58.0
7f5f638e1000-7f5f63ae0000 ---p 00003000 08:08 530407 /usr/lib/x86_64-linux-gnu/libboost_system.so.1.58.0
7f5f63ae0000-7f5f63ae1000 r--p 00002000 08:08 530407 /usr/lib/x86_64-linux-gnu/libboost_system.so.1.58.0
7f5f63ae1000-7f5f63ae2000 rw-p 00003000 08:08 530407 /usr/lib/x86_64-linux-gnu/libboost_system.so.1.58.0
7f5f63ae2000-7f5f63be5000 r-xp 00000000 08:08 544079 /usr/lib/x86_64-linux-gnu/libboost_regex.so.1.58.0
7f5f63be5000-7f5f63de5000 ---p 00103000 08:08 544079 /usr/lib/x86_64-linux-gnu/libboost_regex.so.1.58.0
7f5f63de5000-7f5f63de9000 r--p 00103000 08:08 544079 /usr/lib/x86_64-linux-gnu/libboost_regex.so.1.58.0
7f5f63de9000-7f5f63dea000 rw-p 00107000 08:08 544079 /usr/lib/x86_64-linux-gnu/libboost_regex.so.1.58.0
7f5f63dea000-7f5f63e00000 r-xp 00000000 08:08 266135 /lib/x86_64-linux-gnu/libgcc_s.so.1
7f5f63e00000-7f5f63fff000 ---p 00016000 08:08 266135 /lib/x86_64-linux-gnu/libgcc_s.so.1
7f5f63fff000-7f5f64000000 rw-p 00015000 08:08 266135 /lib/x86_64-linux-gnu/libgcc_s.so.1
7f5f64000000-7f5f64021000 rw-p 00000000 00:00 0
7f5f64021000-7f5f68000000 ---p 00000000 00:00 0
7f5f68000000-7f5f68021000 rw-p 00000000 00:00 0
7f5f68021000-7f5f6c000000 ---p 00000000 00:00 0
7f5f6c000000-7f5f6c021000 rw-p 00000000 00:00 0
7f5f6c021000-7f5f70000000 ---p 00000000 00:00 0
7f5f70000000-7f5f70056000 rw-p 00000000 00:00 0
7f5f70056000-7f5f74000000 ---p 00000000 00:00 0
7f5f74000000-7f5f74021000 rw-p 00000000 00:00 0
7f5f74021000-7f5f78000000 ---p 00000000 00:00 0
7f5f78000000-7f5f7804e000 rw-p 00000000 00:00 0
7f5f7804e000-7f5f7c000000 ---p 00000000 00:00 0
7f5f7c000000-7f5f7c021000 rw-p 00000000 00:00 0
7f5f7c021000-7f5f80000000 ---p 00000000 00:00 0
7f5f80000000-7f5f80021000 rw-p 00000000 00:00 0
7f5f80021000-7f5f84000000 ---p 00000000 00:00 0
7f5f84000000-7f5f84021000 rw-p 00000000 00:00 0
7f5f84021000-7f5f88000000 ---p 00000000 00:00 0
7f5f880d6000-7f5f88248000 r-xp 00000000 08:08 523457 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7f5f88248000-7f5f88448000 ---p 00172000 08:08 523457 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7f5f88448000-7f5f88452000 r--p 00172000 08:08 523457 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7f5f88452000-7f5f88454000 rw-p 0017c000 08:08 523457 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7f5f88454000-7f5f88458000 rw-p 00000000 00:00 0
7f5f88458000-7f5f887ac000 r-xp 00000000 08:08 403729 /usr/local/lib/libfreeling-4.0.so
7f5f887ac000-7f5f889ab000 ---p 00354000 08:08 403729 /usr/local/lib/libfreeling-4.0.so
7f5f889ab000-7f5f889b0000 r--p 00353000 08:08 403729 /usr/local/lib/libfreeling-4.0.so
7f5f889b0000-7f5f889b4000 rw-p 00358000 08:08 403729 /usr/local/lib/libfreeling-4.0.so
7f5f889b4000-7f5f889b8000 rw-p 00000000 00:00 0
7f5f889b8000-7f5f88b14000 r-xp 00000000 08:08 267285 /lib/libfreeling_javaAPI.so
7f5f88b14000-7f5f88d13000 ---p 0015c000 08:08 267285 /lib/libfreeling_javaAPI.so
7f5f88d13000-7f5f88d14000 r--p 0015b000 08:08 267285 /lib/libfreeling_javaAPI.so
7f5f88d14000-7f5f88d1b000 rw-p 0015c000 08:08 267285 /lib/libfreeling_javaAPI.so
7f5f88d1b000-7f5f88d1c000 ---p 00000000 00:00 0
7f5f88d1c000-7f5f88e1c000 rw-p 00000000 00:00 0
7f5f88e1c000-7f5f88e1f000 ---p 00000000 00:00 0
7f5f88e1f000-7f5f88f1d000 rw-p 00000000 00:00 0
7f5f88f1d000-7f5f88f20000 ---p 00000000 00:00 0
7f5f88f20000-7f5f8901e000 rw-p 00000000 00:00 0
7f5f8901e000-7f5f89021000 ---p 00000000 00:00 0
7f5f89021000-7f5f8911f000 rw-p 00000000 00:00 0
7f5f8911f000-7f5f89122000 ---p 00000000 00:00 0
7f5f89122000-7f5f8c000000 rw-p 00000000 00:00 0
7f5f8c000000-7f5f8c021000 rw-p 00000000 00:00 0
7f5f8c021000-7f5f90000000 ---p 00000000 00:00 0
7f5f90000000-7f5f90021000 rw-p 00000000 00:00 0
7f5f90021000-7f5f94000000 ---p 00000000 00:00 0
7f5f94000000-7f5f94021000 rw-p 00000000 00:00 0
7f5f94021000-7f5f98000000 ---p 00000000 00:00 0
7f5f98000000-7f5f98021000 rw-p 00000000 00:00 0
7f5f98021000-7f5f9c000000 ---p 00000000 00:00 0
7f5f9c0a9000-7f5f9c0ac000 ---p 00000000 00:00 0
7f5f9c0ac000-7f5f9c1aa000 rw-p 00000000 00:00 0
7f5f9c1aa000-7f5f9c6f7000 r--p 00000000 08:08 523629 /usr/lib/locale/locale-archive
7f5f9c6f7000-7f5f9c6fa000 ---p 00000000 00:00 0
7f5f9c6fa000-7f5f9c7f8000 rw-p 00000000 00:00 0
7f5f9c7f8000-7f5f9c7fb000 ---p 00000000 00:00 0
7f5f9c7fb000-7f5f9c8f9000 rw-p 00000000 00:00 0
7f5f9c8f9000-7f5f9c8fa000 ---p 00000000 00:00 0
7f5f9c8fa000-7f5f9d000000 rw-p 00000000 00:00 0
7f5f9d000000-7f5f9d270000 rwxp 00000000 00:00 0
7f5f9d270000-7f5fac000000 ---p 00000000 00:00 0
7f5fac000000-7f5fb0000000 rw-p 00000000 00:00 0
7f5fb0082000-7f5fb0a5e000 rw-p 00000000 00:00 0
7f5fb0a5e000-7f5fb0c37000 r--s 03d40000 08:08 418868 /usr/lib/jvm/java-8-oracle/jre/lib/rt.jar
7f5fb0c37000-7f5fb112d000 rw-p 00000000 00:00 0
7f5fb112d000-7f5fb14ad000 ---p 00000000 00:00 0
7f5fb14ad000-7f5fb178b000 rw-p 00000000 00:00 0
7f5fb178b000-7f5fb178c000 ---p 00000000 00:00 0
7f5fb178c000-7f5fb188c000 rw-p 00000000 00:00 0
7f5fb188c000-7f5fb188d000 ---p 00000000 00:00 0
7f5fb188d000-7f5fb198d000 rw-p 00000000 00:00 0
7f5fb198d000-7f5fb198e000 ---p 00000000 00:00 0
7f5fb198e000-7f5fb1a8e000 rw-p 00000000 00:00 0
7f5fb1a8e000-7f5fb1a8f000 ---p 00000000 00:00 0
7f5fb1a8f000-7f5fb1bae000 rw-p 00000000 00:00 0
7f5fb1bae000-7f5fb1d79000 ---p 00000000 00:00 0
7f5fb1d79000-7f5fb1d98000 rw-p 00000000 00:00 0
7f5fb1d98000-7f5fb1f62000 ---p 00000000 00:00 0
7f5fb1f62000-7f5fb1f72000 rw-p 00000000 00:00 0
7f5fb1f72000-7f5fb2057000 ---p 00000000 00:00 0
7f5fb2057000-7f5fb2062000 rw-p 00000000 00:00 0
7f5fb2062000-7f5fb2418000 ---p 00000000 00:00 0
7f5fb2418000-7f5fb2432000 r-xp 00000000 08:08 419075 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libzip.so
7f5fb2432000-7f5fb2632000 ---p 0001a000 08:08 419075 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libzip.so
7f5fb2632000-7f5fb2633000 rw-p 0001a000 08:08 419075 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libzip.so
7f5fb2633000-7f5fb263e000 r-xp 00000000 08:08 267186 /lib/x86_64-linux-gnu/libnss_files-2.23.so
7f5fb263e000-7f5fb283d000 ---p 0000b000 08:08 267186 /lib/x86_64-linux-gnu/libnss_files-2.23.so
7f5fb283d000-7f5fb283e000 r--p 0000a000 08:08 267186 /lib/x86_64-linux-gnu/libnss_files-2.23.so
7f5fb283e000-7f5fb283f000 rw-p 0000b000 08:08 267186 /lib/x86_64-linux-gnu/libnss_files-2.23.so
7f5fb283f000-7f5fb2845000 rw-p 00000000 00:00 0
7f5fb2845000-7f5fb2850000 r-xp 00000000 08:08 267175 /lib/x86_64-linux-gnu/libnss_nis-2.23.so
7f5fb2850000-7f5fb2a4f000 ---p 0000b000 08:08 267175 /lib/x86_64-linux-gnu/libnss_nis-2.23.so
7f5fb2a4f000-7f5fb2a50000 r--p 0000a000 08:08 267175 /lib/x86_64-linux-gnu/libnss_nis-2.23.so
7f5fb2a50000-7f5fb2a51000 rw-p 0000b000 08:08 267175 /lib/x86_64-linux-gnu/libnss_nis-2.23.so
7f5fb2a51000-7f5fb2a67000 r-xp 00000000 08:08 267178 /lib/x86_64-linux-gnu/libnsl-2.23.so
7f5fb2a67000-7f5fb2c66000 ---p 00016000 08:08 267178 /lib/x86_64-linux-gnu/libnsl-2.23.so
7f5fb2c66000-7f5fb2c67000 r--p 00015000 08:08 267178 /lib/x86_64-linux-gnu/libnsl-2.23.so
7f5fb2c67000-7f5fb2c68000 rw-p 00016000 08:08 267178 /lib/x86_64-linux-gnu/libnsl-2.23.so
7f5fb2c68000-7f5fb2c6a000 rw-p 00000000 00:00 0
7f5fb2c6a000-7f5fb2c72000 r-xp 00000000 08:08 267191 /lib/x86_64-linux-gnu/libnss_compat-2.23.so
7f5fb2c72000-7f5fb2e71000 ---p 00008000 08:08 267191 /lib/x86_64-linux-gnu/libnss_compat-2.23.so
7f5fb2e71000-7f5fb2e72000 r--p 00007000 08:08 267191 /lib/x86_64-linux-gnu/libnss_compat-2.23.so
7f5fb2e72000-7f5fb2e73000 rw-p 00008000 08:08 267191 /lib/x86_64-linux-gnu/libnss_compat-2.23.so
7f5fb2e73000-7f5fb2e9e000 r-xp 00000000 08:08 419069 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libjava.so
7f5fb2e9e000-7f5fb309d000 ---p 0002b000 08:08 419069 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libjava.so
7f5fb309d000-7f5fb309f000 rw-p 0002a000 08:08 419069 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libjava.so
7f5fb309f000-7f5fb30ac000 r-xp 00000000 08:08 419074 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libverify.so
7f5fb30ac000-7f5fb32ab000 ---p 0000d000 08:08 419074 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libverify.so
7f5fb32ab000-7f5fb32ad000 rw-p 0000c000 08:08 419074 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libverify.so
7f5fb32ad000-7f5fb32b4000 r-xp 00000000 08:08 267192 /lib/x86_64-linux-gnu/librt-2.23.so
7f5fb32b4000-7f5fb34b3000 ---p 00007000 08:08 267192 /lib/x86_64-linux-gnu/librt-2.23.so
7f5fb34b3000-7f5fb34b4000 r--p 00006000 08:08 267192 /lib/x86_64-linux-gnu/librt-2.23.so
7f5fb34b4000-7f5fb34b5000 rw-p 00007000 08:08 267192 /lib/x86_64-linux-gnu/librt-2.23.so
7f5fb34b5000-7f5fb35bd000 r-xp 00000000 08:08 267177 /lib/x86_64-linux-gnu/libm-2.23.so
7f5fb35bd000-7f5fb37bc000 ---p 00108000 08:08 267177 /lib/x86_64-linux-gnu/libm-2.23.so
7f5fb37bc000-7f5fb37bd000 r--p 00107000 08:08 267177 /lib/x86_64-linux-gnu/libm-2.23.so
7f5fb37bd000-7f5fb37be000 rw-p 00108000 08:08 267177 /lib/x86_64-linux-gnu/libm-2.23.so
7f5fb37be000-7f5fb448d000 r-xp 00000000 08:08 419095 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/server/libjvm.so
7f5fb448d000-7f5fb468d000 ---p 00ccf000 08:08 419095 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/server/libjvm.so
7f5fb468d000-7f5fb4766000 rw-p 00ccf000 08:08 419095 /usr/lib/jvm/java-8-oracle/jre/lib/amd64/server/libjvm.so
7f5fb4766000-7f5fb47b1000 rw-p 00000000 00:00 0
7f5fb47b1000-7f5fb4970000 r-xp 00000000 08:08 267179 /lib/x86_64-linux-gnu/libc-2.23.so
7f5fb4970000-7f5fb4b70000 ---p 001bf000 08:08 267179 /lib/x86_64-linux-gnu/libc-2.23.so
7f5fb4b70000-7f5fb4b74000 r--p 001bf000 08:08 267179 /lib/x86_64-linux-gnu/libc-2.23.so
7f5fb4b74000-7f5fb4b76000 rw-p 001c3000 08:08 267179 /lib/x86_64-linux-gnu/libc-2.23.so
7f5fb4b76000-7f5fb4b7a000 rw-p 00000000 00:00 0
7f5fb4b7a000-7f5fb4b7d000 r-xp 00000000 08:08 267174 /lib/x86_64-linux-gnu/libdl-2.23.so
7f5fb4b7d000-7f5fb4d7c000 ---p 00003000 08:08 267174 /lib/x86_64-linux-gnu/libdl-2.23.so
7f5fb4d7c000-7f5fb4d7d000 r--p 00002000 08:08 267174 /lib/x86_64-linux-gnu/libdl-2.23.so
7f5fb4d7d000-7f5fb4d7e000 rw-p 00003000 08:08 267174 /lib/x86_64-linux-gnu/libdl-2.23.so
7f5fb4d7e000-7f5fb4d93000 r-xp 00000000 08:08 418770 /usr/lib/jvm/java-8-oracle/lib/amd64/jli/libjli.so
7f5fb4d93000-7f5fb4f93000 ---p 00015000 08:08 418770 /usr/lib/jvm/java-8-oracle/lib/amd64/jli/libjli.so
7f5fb4f93000-7f5fb4f94000 rw-p 00015000 08:08 418770 /usr/lib/jvm/java-8-oracle/lib/amd64/jli/libjli.so
7f5fb4f94000-7f5fb4fac000 r-xp 00000000 08:08 267196 /lib/x86_64-linux-gnu/libpthread-2.23.so
7f5fb4fac000-7f5fb51ab000 ---p 00018000 08:08 267196 /lib/x86_64-linux-gnu/libpthread-2.23.so
7f5fb51ab000-7f5fb51ac000 r--p 00017000 08:08 267196 /lib/x86_64-linux-gnu/libpthread-2.23.so
7f5fb51ac000-7f5fb51ad000 rw-p 00018000 08:08 267196 /lib/x86_64-linux-gnu/libpthread-2.23.so
7f5fb51ad000-7f5fb51b1000 rw-p 00000000 00:00 0
7f5fb51b1000-7f5fb51d7000 r-xp 00000000 08:08 267180 /lib/x86_64-linux-gnu/ld-2.23.so
7f5fb51ed000-7f5fb52ae000 rw-p 00000000 00:00 0
7f5fb52ae000-7f5fb52b1000 ---p 00000000 00:00 0
7f5fb52b1000-7f5fb53b3000 rw-p 00000000 00:00 0
7f5fb53bc000-7f5fb53bd000 rw-p 00000000 00:00 0
7f5fb53bd000-7f5fb53c4000 r--s 00000000 08:08 794095 /usr/lib/x86_64-linux-gnu/gconv/gconv-modules.cache
7f5fb53c4000-7f5fb53ca000 r--s 0003e000 08:08 1996627 /home/javier/Descargas/FreeLing-master/APIs/java/freeling.jar
7f5fb53ca000-7f5fb53d2000 rw-s 00000000 08:08 916840 /tmp/hsperfdata_javier/668
7f5fb53d2000-7f5fb53d3000 rw-p 00000000 00:00 0
7f5fb53d3000-7f5fb53d4000 r--p 00000000 00:00 0
7f5fb53d4000-7f5fb53d6000 rw-p 00000000 00:00 0
7f5fb53d6000-7f5fb53d7000 r--p 00025000 08:08 267180 /lib/x86_64-linux-gnu/ld-2.23.so
7f5fb53d7000-7f5fb53d8000 rw-p 00026000 08:08 267180 /lib/x86_64-linux-gnu/ld-2.23.so
7f5fb53d8000-7f5fb53d9000 rw-p 00000000 00:00 0
7ffd5a1e4000-7ffd5a205000 rw-p 00000000 00:00 0 [stack]
7ffd5a3f8000-7ffd5a3fa000 r--p 00000000 00:00 0 [vvar]
7ffd5a3fa000-7ffd5a3fc000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]

I reinstalled java 8 oracle via console but the same error occurred.

Thanks in advance

First, you should make sure every thing works in the simplest enviroment.
That is: Compile the API from command line, compile Analyzer.java from command line, and then run Analyzer from command line.
If that works, you'll now the problem is in how you are integrating things in eclipse (I can not help you there, I don't use it)

In any case, the error you posted looks like some mismatch of compiler versions...
Make sure you built freeling in the same machine.
Make sure you compiled the java API with the same C++ compiler than FreeLing.
Make sure your CLASSPATH and LD_LIBRARY_PATH are pointing to the right versions of libfreeling and java API.

javilm's picture

Okay, I'll try that
Thanks lluisp!