Article View: borland.public.jbuilder.java.api
Article #82Re: Calling Java API via Delphi
From: John McGrath [TeamB]
Date: Mon, 04 Apr 2005 20:46
Date: Mon, 04 Apr 2005 20:46
22 lines
1781 bytes
1781 bytes
On 4/3/2005 at 5:51:14 PM, Jaelani C. U. wrote:
> 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
Technical Details
Message-ID:
<xn0e0lsyi1t8e5t003@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newshub.sdsu.edu!elnk-nf2-pas!elnk-pas-nf1!newsfeed.earthlink.net!cyclone.socal.rr.com!news-west.rr.com!news.rr.com!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<opsooezoqmbobfgx@bitminds>Show Full Headers
Complete Article Headers
X-Google-Thread: 1089d0,3dc1872a2a554a23 X-Google-Attributes: gid1089d0,public X-Google-Language: ENGLISH,ASCII-7-bit From: "John McGrath [TeamB]" <ng-b@JPMcGrath.net> Subject: Re: Calling Java API via Delphi Newsgroups: borland.public.jbuilder.java.api References: <opsooezoqmbobfgx@bitminds> User-Agent: XanaNews/1.17.3.1 Message-ID: <xn0e0lsyi1t8e5t003@newsgroups.borland.com> X-Ref: newsgroups.borland.com ~XNS:0000035A MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 NNTP-Posting-Host: 141.158.34.113 Date: 4 Apr 2005 12:46:54 -0800 X-Trace: newsgroups.borland.com 1112644014 141.158.34.113 (4 Apr 2005 12:46:54 -0800) Lines: 22 X-Authenticated-User: jpmcgrath Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newshub.sdsu.edu!elnk-nf2-pas!elnk-pas-nf1!newsfeed.earthlink.net!cyclone.socal.rr.com!news-west.rr.com!news.rr.com!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail