Error : "Could NOT find JNI" when build java-cef in Mac

Having problems with building or using the JCEF Java binding? Ask your questions here.

Error : "Could NOT find JNI" when build java-cef in Mac

Postby harshaspace » Fri Jan 08, 2021 5:42 am

Hi,

I am trying to build java-cef project in mac os. I am getting below error.

below is s/w versions that I use.
java version 1.8.0_271
cmake version 3.10.2
build with Xcode
Mac OS 10.13.4

Code: Select all
Could NOT find JNI (missing: JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH) (Required is at least version "1.7")
CMake Error at CMakeLists.txt:197 (message):
  A Java installation is required.  Set the JAVA_HOME environment variable to
  explicitly specify the Java installation directory.


Even though I set the JAVA_HOME, still getting the same error.
But this works fine for latest java 15 version.

Is there any way to get this resolved in java 1.8 ?

Thanks!
harshaspace
Newbie
 
Posts: 1
Joined: Fri Jan 08, 2021 5:10 am

Return to JCEF Forum

Who is online

Users browsing this forum: No registered users and 2 guests

cron