What to do with its Java Native Interface library file in its filepath?

JohnCTX 636 Reputation points
2020-12-20T02:38:41.08+00:00

I have installed or unzipped the Java Native Interface or JNI library onto my desktop.
What I want to perform next is how to reference its file path within the Xamarin IDE in Visual Studio.

This question applies to the following:
Visual Studio 2019
Java Native Interface
C\C++\C# code interaction with the JNI.
Windows 10 64-bit Enterprise Edition
Hyper-V plug in emulator for both Android and iOS mobile operating systems.

Here I have found it's JNI library file within the file path: C:\Program Files\Java\jdk-15.0.1\include\jni.h

What I want to perform next is to include its file path within the Xamarin IDE's solution explorer pane.

Users are welcome to answer and assist me as long as its relevant to the topic.

Regards,

JohnCTX

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,297 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,320 questions
0 comments No comments
{count} votes

Accepted answer
  1. JarvanZhang 23,951 Reputation points
    2020-12-21T09:04:31.387+00:00

    Hello,​

    Welcome to our Microsoft Q&A platform!

    To work with JNI and Xamarin.Android, please check the following tutorial. This document illustrates how to use JNI to interact with Java types and members from Xamarin.Android applications.
    https://learn.microsoft.com/en-us/xamarin/android/platform/java-integration/working-with-jni

    Best Regards,

    Jarvan Zhang


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful