problem running lg4.6.6 with java.

8 views
Skip to first unread message

vidya sagar

unread,
Apr 3, 2010, 4:11:23 PM4/3/10
to link-g...@googlegroups.com
hi all,

I recently installed link-grammar v4.6.6. When trying to run the program previously written using v4.6.5 it was giving error

Exception in thread "main" java.lang.UnsatisfiedLinkError: org.linkgrammar.LinkGrammar.getDictVersion()Ljava/lang/String;
        at org.linkgrammar.LinkGrammar.getDictVersion(Native Method)
        at org.linkgrammar.LGService.getAsParseResult(LGService.java:173)
        at org.linkgrammar.LGService.parse(LGService.java:503)
        at linkexample.Linkparse.test(Linkparse.java:30)
        at linkexample.Main.main(Main.java:24)

The program is running fine with v4.6.5. The command line parser is parsing the sentence though. Can you please tell the solution?

thanks in advance.

Regards,
Sagar.

Linas Vepstas

unread,
Apr 5, 2010, 11:48:12 AM4/5/10
to link-g...@googlegroups.com
On 3 April 2010 14:11, vidya sagar <sagarv...@gmail.com> wrote:
hi all,

I recently installed link-grammar v4.6.6. When trying to run the program previously written using v4.6.5 it was giving error

Exception in thread "main" java.lang.UnsatisfiedLinkError: org.linkgrammar.LinkGrammar.getDictVersion()Ljava/lang/String;
        at org.linkgrammar.LinkGrammar.getDictVersion(Native Method)
        at org.linkgrammar.LGService.getAsParseResult(LGService.java:173)
        at org.linkgrammar.LGService.parse(LGService.java:503)
        at linkexample.Linkparse.test(Linkparse.java:30)
        at linkexample.Main.main(Main.java:24)


Version 4.6.6 introduces a new function called "getDictVersion" to return the version
number of the dictionary. It appears that you are using the new jar file, which expects
that function to be there. However, the jar file is not finding the new link-grammar
library, it's appearently finding only the older library, which does not have this new
function.

Check you installation.

--linas
Reply all
Reply to author
Forward
0 new messages