jwnl difficulties in installing Relex on ubuntu

90 views
Skip to first unread message

JRowe

unread,
Dec 9, 2010, 11:56:17 AM12/9/10
to link-grammar
After installing opencog, I'm now attempting to install Relex 1.3.0,
using the latest download from the lp site.
I have it located at /home/relex. I've set the JAVA_HOME env var.

I've manually specified the path for the jwnl libraries in build.xml
like so:
<pathelement location="/home/relex/jwnl14-rc2/jwnl.jar"/>
<pathelement location="/home/relex/jwnl14-rc2/jwnl.jar"/>
<pathelement location="/home/relex/jwnl13rc2/jwnl.jar"/>

Ant reports a successful build. When I run any of the shell scripts, I
get the following error:

Exception in thread "main" java.lang.NoClassDefFoundError: net/didion/
jwnl/JWNLException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:186)
at relex.morphy.MorphyFactory.getImplementation(MorphyFactory.java:
37)
at relex.RelationExtractor.init(RelationExtractor.java:140)
at relex.RelationExtractor.<init>(RelationExtractor.java:133)
at relex.Server.main(Server.java:100)
Caused by: java.lang.ClassNotFoundException:
net.didion.jwnl.JWNLException
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
... 6 more


I'm not sure where to go from here - all dependencies are installed,
code is the latest release, java path is set, ant reports build
success. What am i missing?

Linas Vepstas

unread,
Dec 9, 2010, 8:02:15 PM12/9/10
to link-g...@googlegroups.com
On 9 December 2010 10:56, JRowe <jro...@gmail.com> wrote:
> After installing opencog, I'm now attempting to install Relex 1.3.0,
> using the latest download from the lp site.

I think we resolved everything via IRC, but curtesy means an
email reply ...

--linas

JRowe

unread,
Dec 14, 2010, 1:15:46 PM12/14/10
to link-grammar
Indeed, everything got fixed and I have Relex running correctly. There
were a few things that needed to be done, but essentially, I had to
manually input the path to jwnl in the Relex parameters, both when
compiling, and when specifying libs to be used in the .sh scripts.
After that, be sure you have the JAVA_HOME environment variable set,
and Relex should work wonderfully.
Reply all
Reply to author
Forward
0 new messages