Discussion:
Calling Java API via Delphi
(too old to reply)
Jaelani C. U.
2005-04-03 21:51:14 UTC
Permalink
Hello,

I was wondering how to use functions from either Microsoft or Sun Java
libraries.
Is it even possible?

Thank you in advance.
John McGrath [TeamB]
2005-04-04 20:46:54 UTC
Permalink
Post by Jaelani C. U.
I was wondering how to use functions from either Microsoft or Sun Java
libraries. Is it even possible?
You can call functions in native libraries using the JNI - the Java Native
Interface. Documentation on JNI is included in the Sun JDK distribution.

You can call any Java method, including those in the Sun libraries, using
the same mechanisms that you would use to all any Java method. Ensure
that the library is on the classpath and call it. Of course, using
methods that are not part of standard Java can introduce portability
concerns.
--
Regards,

John McGrath [TeamB]

---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Jaelani C. U.
2005-04-04 20:21:48 UTC
Permalink
t> =
You can call functions in native libraries using the JNI - the Java =
Native
Interface. Documentation on JNI is included in the Sun JDK distributi=
on.
You can call any Java method, including those in the Sun libraries, us=
ing
the same mechanisms that you would use to all any Java method. Ensure=
that the library is on the classpath and call it. Of course, using
methods that are not part of standard Java can introduce portability
concerns.
Many thanks for that.
I'm gonna find out more about the JNI.
I'll try not to think about portabily issuse, yet.
Thanks for the warning.
Paul Nichols (TeamB)
2005-04-04 19:42:40 UTC
Permalink
Post by Jaelani C. U.
Hello,
I was wondering how to use functions from either Microsoft or Sun Java
libraries.
Is it even possible?
Thank you in advance.
These are the only ways that I know of:

(1) EJB calls (must be using Boland's Application Sever)
(2) Corba Bridge (must be using Visibroker) for Delphi.
(3) Web Services
(4) Passing data to/from Delphi to Java Server side sockets through HTTP.
(5) Third party product like ASTA.
Jaelani C. U.
2005-04-04 20:29:08 UTC
Permalink
On Mon, 4 Apr 2005 14:42:40 -0500, Paul Nichols (TeamB) =
(1) EJB calls (must be using Boland's Application Sever)
(2) Corba Bridge (must be using Visibroker) for Delphi.
(3) Web Services
(4) Passing data to/from Delphi to Java Server side sockets through HT=
TP.
(5) Third party product like ASTA.
I know there are many ways to do it, but I'm trying to exclude any =

internet technology (eg. server, web, socket).
The ASTA you just mentioned. Where can I find out more about it?
Thank you.
Paul Nichols (TeamB)
2005-04-07 02:29:34 UTC
Permalink
On Mon, 4 Apr 2005 14:42:40 -0500, Paul Nichols (TeamB)
(1) EJB calls (must be using Boland's Application Sever)
(2) Corba Bridge (must be using Visibroker) for Delphi.
(3) Web Services
(4) Passing data to/from Delphi to Java Server side sockets through HTTP.
(5) Third party product like ASTA.
I know there are many ways to do it, but I'm trying to exclude any
internet technology (eg. server, web, socket).
The ASTA you just mentioned. Where can I find out more about it?
Thank you.

try:

www.astatech.com


For Delphi to Java JNI look on code central. There used to be a JNI for
Delphi on that site, that would allow Java to Delphi communication without
the Network protocols.

David Orriss, Jr. [TeamB]
2005-04-05 06:07:15 UTC
Permalink
Post by Jaelani C. U.
Hello,
I was wondering how to use functions from either Microsoft or Sun Java
libraries.
Is it even possible?
Thank you in advance.
Google is your friend... :)

http://www.revusky.com/hacks/jniwrapper.html

At least it's a good start.
--
David Orriss Jr. TeamB
http://www.davenet.net/
* Please limit all responses to the newsgroups. Thanks! *
Got a JBuilder website? Join the JBuilder Netring! Check out
http://www.davenet.net/jbwebring/jbwebring.htm for more information!

My blog: http://mywebpages.comcast.net/daorriss/

Save yourself some time and check these sites:

Borland Newsgroup Search:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's Faq-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html
Loading...