RelEx Runtime Errors

194 views
Skip to first unread message

Isuru Haththotuwa

unread,
Jan 11, 2011, 2:01:54 AM1/11/11
to link-g...@googlegroups.com
Hi all,

I built the RelEx code base with the dependencies using Eclipse and Ant. Added gate.jar, jwnl.jar, linkgrammar-4.7.0.jar and opennlp-tools-1.4.3.jar. When I try to run it using ant, i get the following runtime errors:

run:
     [java] Info: Using file defined in wordnet.configfile:data/wordnet/file_properties.xml
     [java] Error: Unable to initialize JWNL: net.didion.jwnl.JWNLException: Unable to install net.didion.jwnl.dictionary.FileBackedDictionary
     [java] net.didion.jwnl.JWNLException: The properties file must specify a dictionary path
     [java] net.didion.jwnl.JWNLException: Could not create a file manager of type class net.didion.jwnl.princeton.file.PrincetonRandomAccessDictionaryFile
     [java] java.io.FileNotFoundException: /usr/share/wordnet/index.verb (No such file or directory)
     [java] Warning: Unable to initialize WordNet Java API (JWNL).
     [java]     Was -Dwordnet.configfile set correctly?
     [java]     Does the wordnet.configfile contain the  right paths?
     [java]     Will use command-line interface; this will negatively impact performance.
     [java] Exception in thread "main" java.lang.UnsatisfiedLinkError: no link-grammar-java in java.library.path
     [java]     at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1734)
     [java]     at java.lang.Runtime.loadLibrary0(Runtime.java:823)
     [java]     at java.lang.System.loadLibrary(System.java:1028)
     [java]     at org.linkgrammar.LinkGrammar.<clinit>(LinkGrammar.java:41)
     [java]     at relex.parser.LocalLGParser.getVersion(LocalLGParser.java:322)
     [java]     at relex.RelationExtractor.getVersion(RelationExtractor.java:172)
     [java]     at relex.RelationExtractor.main(RelationExtractor.java:479)

BUILD FAILED

Can someone tell me what the problem is?

--
Thanks and Regards,
Isuru

Erik Prabowo Kamal

unread,
Jan 11, 2011, 2:38:29 AM1/11/11
to link-g...@googlegroups.com
Hello,

[java] Info: Using file defined in
wordnet.configfile:data/wordnet/file_properties.xml

...


[java] java.io.FileNotFoundException: /usr/share/wordnet/index.verb
(No such file or directory)

you might not have changed the default location setting of WordNet to
the Windows one in data/wordnet/file_properties.xml (also make sure you
have installed WordNet there),

[java] Exception in thread "main" java.lang.UnsatisfiedLinkError:
no link-grammar-java in java.library.path

and as for this one, I haven't tried compiling RelEx and installing Link
Grammar on Windows, but on *nix, this problem can be solved by making
sure the Link Grammar installation includes installation of
liblink-grammar-java.so (or the like) to java.library.path, which, on
*nix, may be set to, for instance, /usr/local/lib.

Erik

unread,
Jan 11, 2011, 3:13:12 AM1/11/11
to link-grammar
Hello, I had replied previously straight from my MUA, but apparently
it hasn't gotten here yet.
But if it comes later and make this reply double, sorry in advance.
Anyway,

[java] Info: Using file defined in wordnet.configfile:data/wordnet/
file_properties.xml
...
[java] java.io.FileNotFoundException: /usr/share/wordnet/index.verb
(No such file or directory)

you might not have changed the default location setting of WordNet to
the Windows one in data/wordnet/file_properties.xml (also make sure
you have installed WordNet there),

[java] Exception in thread "main" java.lang.UnsatisfiedLinkError:
no link-grammar-java in java.library.path

Reply all
Reply to author
Forward
0 new messages