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

configure doesn't properly detect jdk while execute with "--enable-javacashlib" #2000

Open
sickpig opened this issue Oct 25, 2019 · 1 comment
Assignees

Comments

@sickpig
Copy link
Collaborator

sickpig commented Oct 25, 2019

if you rung configure like that:

./configure --enable-shared --enable-javacashlib

and you don't have java (jdk) installed in your system you are going to get this error during the make step:

  CXX      crypto/libbitcoincash_la-aes.lo
  CXX      crypto/libbitcoincash_la-chacha20.lo
../../src/cashlib/cashlib.cpp:548:10: fatal error: jni.h: No such file or directory
 #include <jni.h>
          ^~~~~~~

it seems to me then that configure doesn't properly detect jdk

@sickpig
Copy link
Collaborator Author

sickpig commented Oct 25, 2019

setting JAVA_HOME env var before compilation fixed the problem, but indeed this is just a workaround

export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64

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