question

JohnCTX-6479 avatar image
0 Votes"
JohnCTX-6479 asked ·

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

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

dotnet-csharpdotnet-xamarinformsdotnet-androiddotnet-ios
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JarvanZhang-MSFT avatar image
0 Votes"
JarvanZhang-MSFT answered ·

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://docs.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.




·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.