本文介绍了从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
发布评论