Skip to content
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

What should I set to java.library.path #10

Closed
huyajiecn opened this issue Jan 10, 2013 · 1 comment
Closed

What should I set to java.library.path #10

huyajiecn opened this issue Jan 10, 2013 · 1 comment

Comments

@huyajiecn
Copy link

@jamiebullock Thank you for your instructions. The test.java works very well. When I call the functions in my project, I fail to load the library "jxtract". Where is the ".libs" in "java.library.path=.libs"? What should I set to java.library.path? Thank you so much!

@jamiebullock
Copy link
Owner

.libs assumes you are running from the compile directory swig/java.

However the argument passed to java.library.path needs to point to the location of libjxtract.dylib on your system (libjxtract.so on Linux). Assuming you didn't pass an special paths to configure, this will normally be /usr/local/lib

So if you installed LibXtract with "sudo make install", then you should be able to run Java classes with:

java -Djava.library.path=/usr/local/lib test

On 10 Jan 2013, at 16:37, huyajiecn notifications@github.com wrote:

@jamiebullock Thank you for your instructions. The test.java works very well. When I call the functions in my project, I fail to load the library "jxtract". Where is the ".libs" in "java.library.path=.libs"? What should I set to java.library.path? Thank you so much!


Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants