从Delphi访问Java jar

编程入门 行业动态 更新时间:2024-10-26 03:38:29
本文介绍了从Delphi访问Java jar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 具有描述的类/函数的Java jar二进制库使得一些有用的东西(没什么特别的只是纯Java - 没有JNI)。没有来源可用。

有一个任务可以直接从Delphi调用这些函数。如何做?

我对Delphi一无所知,但我非常了解Java。

解决方案

不,你不能去的是 JNI 。

几个资源: / p>

  • 使用Delphi使用JNI的Pacifiers系列
  • 我从德尔福谈话的Java谈话在 EKON 11会议
  • 关于SO的Delphi JNI问题

除非你手上有太多的时间,否则可以解压缩JAR文件(它们是ZIP f iles),在Delphi中编写自己的Java VM,然后从那里开始; - )

There's Java jar binary library with described classes/functions making some usefull things (nothing special just plain Java - no JNI). No sources available.

There's a task to call those functions directly from Delphi. How to do that?

P.S. I know nothing about Delphi, but I know a lot about Java.

解决方案

No you can't the way to go is JNI.

A few resources:

  • Pacifiers series on using JNI from Delphi
  • my Talking Java from Delphi talk at the EKON 11 conference
  • the Delphi JNI questions on SO

Unless you have too much time on your hands, in which you could decompress the JAR files (they are ZIP files), write your own Java VM in Delphi and go from there ;-)

更多推荐

从Delphi访问Java jar

本文发布于:2023-10-07 17:40:25,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1470059.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Delphi   Java   jar

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!