karabara
karabara

Reputation: 557

Call Delphi's class from java

The question is whether can I create an instance of class (which is situated in .dll and has written in Delphi) and call method from it using Java.

I have found a lot of solutions about how to call native routines or methods in Java. What about classes?

Upvotes: 1

Views: 412

Answers (1)

Eugene Ryzhikov
Eugene Ryzhikov

Reputation: 17359

One of the easiest is using JNA project. You'd have to create a set of functions in your DLL which could be called. Alternatively you can create a wrapper DLL if original cannot be changed

Upvotes: 1

Related Questions