chandu
chandu

Reputation: 113

Can a C library be loaded directly in Java without using JNI?

I am new to Java my project needs a C API calls called in JAVA file ,i tried with swig in Linux created shared library but i am facing issues there , any other way to call a C API in Java dll directly loaded in any JAVA IDES tool, where it matches with function address called in Java and return the output as in C program does.conclusion load my C dll or library file in JAVA IDES and call the API from JAVA which are there in C lib.Direct function address matching and returning.

Upvotes: 1

Views: 97

Answers (1)

Gregory Pakosz
Gregory Pakosz

Reputation: 70204

Yes, there's JNA which is an alternative to JNI.

Upvotes: 1

Related Questions