answersLogoWhite

0

What is JNI?

User Avatar

Anonymous

15y ago
Updated: 10/18/2022

Java Native Interface

JNI is an interface between java and applications and libraries written in other languages.

As an example, JNI enables Java programs to use C libraries and also enables C programs to use Java classes.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What does N stand for in JNI?

Native Rajendra Dewani


What is the airport code for Junín Airport?

The airport code for Junín Airport is JNI.


Is it possible to write a program in Java and partly in C?

Yes, that's what JNI is good for.


How do you use Java Native Interface to access Delphi code from Java classes?

The Delphi code would need to be compiled into a DLL, and the DLL is then called from java using the JNI. See http://home.pacifier.com/~mmead/jni/delphi/JavaToDPR/ to get started.


Program for finding the current workload of PC using java?

There is no way to do this in Java without using either JNI calls or executing an outside, platform-specific program.


What has the author Rob Gordon written?

Rob Gordon has written: 'Essential Jni' -- subject(s): Java (Computer program language), Application software 'Essential JMF' -- subject(s): Java (Computer program language), Internet programming


During the SMB dialogue nagotiation which proposal index indicates it is windows?

I get a error every time i try to open the Modpacks: DreamCraft 2, Crazy Craft 2.2 and Jurassic Craft 2 i get the error " Error: A JNI Error has occured, please check your installation and try again. I tried reinstalling java, getting different versions of java and reinstalling the modpack but none of this worked. HELP! -NovaInsanity (Also This Is For The Voidsrath Minecraft Modpack Launcher)


Who crashed the Titanic?

It was J. Bruce Ismay. As the Titanic was heading towards the iceberg he convinced the Captain to go faster so they could arrive in New York quicker. J. Bruce Ismay selfishly joined a lifeboat as the ship was sinking. As the Managing Director of White Star Line, he reduced the number of lifeboats on the ship from 48 to 16 leaving many of the precious lifes to perish.


How do you use C plus plus code in Java Program?

You don't. There are two possible workarounds.Use the Java Native Interface (JNI). JNI code resembles C-style code and is able to be compiled in the native machine language of the underlying system. This is a rather complicated solution, and is not ideal for a "quick fix."Write your C++ code like normal, compile it, and use Java code to call your compiled code. You can use the Runtime.getRuntime().exec() methods to accomplish this.


Why can't a c plus plus class be derived from a Java class?

I don't see why it couldn't be. Unless the Java class uses techniques or methods which are available to Java but not C++, then there is no reason that a C++ class couldn't be based on a Java class.


Java language is developed in which programming language?

C language is developed by Dennis Ritchie at Bell Laboratories in 1972. To know more about C Programming and to learn C Programming from basics to advance with lot of examples visit codeforhunger .