-
Notifications
You must be signed in to change notification settings - Fork 193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should there be a CRFPP.so file being added? #33
Comments
I might have made an embarrassing mistake since the test file is not under the example directory. |
Hi eduOS, You can look at my fork if you are having trouble compiling on Windows (although there is no installation and you have to configure paths manually). On Linux I installed it like this:
Then I add |
Thanks so much for your help. I run into one more error now while make in the java directory:
It seems that jni.h file is lost. |
Yeah, the make files for Linux have hardcoded paths to the Java include files. /usr/lib/jvm/java-7-openjdk-amd64/ probably does not exist. You need to edit the makefile to match your Java installation, probably java-8-... if you installed the latest version. |
You're right. I have edited the Makefile replacing the java-7 to the path of java-8 directory containing jni.h. But I met this:
Should I also tell it where to find the jar? I have set the path and I can run jar in my zsh terminal but the error appears all the same. |
I thought the CRFPP.jar cannot be created. Everything about java path is properly set in /etc/profile. I add the java.library.path by:
or for the terminal:
But the fourth error occurred:
Normally a model is produced after the training, @garfieldnate I reach the place where you are now. Haha. |
This issue becomes the same as #26 . |
I followed the README to configure, make and install this program on my Ubuntu 14.04, and in the process of making I encountered an error reads that:
and then I added this from #15 to the project root directory and can pass the make and install processes.
After installation, I tended to run it in eclipse and also tried it in my terminal but both trigger an error again:
I got to know that
First of all we must verify that the parameter passed in the System.loadLibrary method is correct and that the library actually exists.
, so to use the native C++ code we need to load the library as shown bellow in the source code:So according to the the above snippet there should be a CRFPP.so file? But I've not found it. Or where can I find the CRFPP library which I must add to the
java.library.path
? I guess it may be caused by the later added and non-authoritive winmain.h file. Am I right?The text was updated successfully, but these errors were encountered: