I'm trying to use mecab library in java on windows. I've installed a prebuilt mecab library for windows. When I try to load it like
try{
System.loadLibrary("libmecab");
}catch(Exception e){
// print stack trace
}
it throws a following error.
Exception in thread "main" java.lang.UnsatisfiedLinkError: org.chasen.mecab.MeCabJNI.new_Tagger__SWIG_0(Ljava/lang/String;)J
at org.chasen.mecab.MeCabJNI.new_Tagger__SWIG_0(Native Method)
at org.chasen.mecab.Tagger.<init>(Tagger.java:140)
I've added mecab on library path
-Djava.library.path="c:/mecab/bin"
I can access Mecab from windows command prompt. Has anybody faced a similar problem and resolved the issue? Any help here is appreciated.