"JNI" Find ' jni.h ' for MacOS

Source: Internet
Author: User

  1. Download Jdk8 and install.

  2. Check Java version:

    sodino:~ sodino$ Java-versionJavaversion "1.8.0_45"Java (TM) SE Runtime Environment (build1.8. 0_45-B14) Java HotSpot (TM) --bit Server VM (build25.45-B02, Mixed mode)
  1. Find ' Java ' original path and ' Java_home ':

     Sodino:~ Sodino$ Which Java/usr/bin/javaSodino:~ Sodino$ Ls-n/usr/bin/java Lrwxr-xr-x1 0  0   About Sep  -   the/usr/bin/java/system/Library/Frameworks/JAVAVM. framework/Versions/ Current/Commands/javaSodino:~ Sodino$ /System/Library/Frameworks/JAVAVM. framework/Versions/ Current/Commands/java_home/Library/Java/Javavirtualmachines/jdk1.8.0_45. jdk/Contents/Home
  2. Get ' include ' folder and Jni.h

    Now you'll find a ' include ' folder with in '/library/java/javavirtualmachines/jdk1.8.0_45.jdk/contents/home ',
    and open it ' jni.h ' would be found.

"JNI" Find ' jni.h ' for MacOS

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.