harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan Volosyuk" <ivan.volos...@gmail.com>
Subject Re: [drlvm] Using JNI methods in VM's components.
Date Fri, 20 Oct 2006 12:15:12 GMT
One thing to care about is to take correct corresponding jar file for
each gc library. How this can be solved?
--
Ivan

On 10/20/06, Gregory Shimansky <gshimansky@gmail.com> wrote:
> Alex Astapchuk wrote:
> > Mikhail Fursov :
> >> On 10/20/06, Alex Astapchuk <alex.astapchuk@gmail.com> wrote:
> >>>
> >>> Yeap.
> >>> The following addresse both your issues.
> >>>
> >>>
> >>> class GCv5Magics {
> >>>       static {
> >>>         String gcPath = System.getProperty("vm.gc_dll");
> >>>         if (gcPath == null) {
> >>>           System.load(gcPath);
> >>>         }
> >>>         else {
> >>>           System.loadLibrary("gc.dll");
> >>>         }
> >>>       }
> >>>   }
> >>>
> >>>
> >> I like this approach! :)
> >
> >
> > You will like it even more with a patch (already posted) ;-)
>
> I like this way too. I didn't know about System.load method, it fits
> perfectly here. One small correction, it should be
> System.loadLibrary("gc") without ".dll".
>
> --
> Gregory Shimansky, Intel Middleware Products Division


-- 
Ivan
Intel Enterprise Solutions Software Division

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Mime
View raw message