Article View: borland.public.jbuilder.java.api
Article #1262Re: JNI questions
From: John McGrath TeamB
Date: Tue, 19 Mar 2002 00:08
Date: Tue, 19 Mar 2002 00:08
36 lines
2177 bytes
2177 bytes
On 18 Mar 2002 15:03:51 -0800, Linda wrote:
> I need to rewrite some classes(staying with the old names)
> in java.io package to support Data Carousel file type.
Mucking with java.io classes would probably be a violation of your
license.
> One of these classes is java.io.FileInputStream which contains
> native methods. Does anybody know which library file contains
> the implementation of those native methods provided by JBuilder?
They are not provided by JBuilder, but by the JDK that JBuilder uses.
That is probably a Sun JDK, in which case the native methods are in DLL
files in the JRE's /bin directory.
> How to make sure that the application uses the classes implemented
> in my java.io library, instead of the stardard rt.jar?
You will probably end up with package sealing security exception, which
are designed to prevent people from doing this sort of thing. In order
to accomplish this technically, I think you would have to modify the
"rt.jar" file.
Trying to modify the Java core classes is *really* a bad idea. If you
would explain what you are trying to accomplish, maybe someone can help
you find a better way to do it.
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<MPG.17004b8c8d282f6998b46c@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!supernews.com!telocity-west!TELOCITY!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnewsReferences:
<3c967257$1_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,e6ec5e8f29c1fb67 X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2002-03-18 16:10:26 PST From: John McGrath [TeamB] <ng-b@JPMcGrath.net> Newsgroups: borland.public.jbuilder.java.api Subject: Re: JNI questions Date: Mon, 18 Mar 2002 19:08:32 -0500 Message-ID: <MPG.17004b8c8d282f6998b46c@newsgroups.borland.com> References: <3c967257$1_1@dnews> X-Newsreader: MicroPlanet Gravity v2.60 NNTP-Posting-Host: 209.92.40.60 X-Trace: dnews 1016496511 209.92.40.60 (18 Mar 2002 16:08:31 -0800) Lines: 36 X-Authenticated-User: jpmcgrath Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!supernews.com!telocity-west!TELOCITY!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews