Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Is there an alternative to JNI on MacOS?

alternative JNI MacOS
0
Posted

Is there an alternative to JNI on MacOS?

0

Location: http://www.jguru.com/faq/view.jsp?EID=493314 Created: Sep 8, 2001 Author: Davanum Srinivas (http://www.jguru.com/guru/viewbio.jsp?EID=2011) If you want to call Mac OS C code from your Java code, there are currently two mechanisms for doing so: JDirect2 and the Java Native Interface (JNI). Each has advantages and disadvantages. Generally you would want to use JNI if: • You are writing your Java code and C code concurrently • You want your code to be cross-platform • You need to access full Java functionality from your C code (for example, if you need to manipulate Java objects in C) JDirect is useful if: • You want to call older C functions from Java, or code whose source you cannot change (for example, legacy code or system software functions).

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123