使用 Delphi 中的 Java 类 [英] Using a java class from Delphi
本文介绍了使用 Delphi 中的 Java 类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要使用一些java类中包含的逻辑.我找到了 JNI,但该项目最近似乎没有更新.
I need to use the logic contained in some java classes. I found JNI, but that project seems not updated recently.
有没有办法在 Delphi 本机应用程序中使用它?我使用的是 Delphi 2009.
Is there a way to use it in a Delphi native application? I use Delphi 2009.
推荐答案
比 JNI 更新的解决方案是 JNA,它还支持来自 (Delphi) DLL 的回调.我发现它很容易使用.
A newer solution than JNI is JNA, which also supports callbacks from (Delphi) DLLs. I found it easy to use.
这篇关于使用 Delphi 中的 Java 类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文