harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gregory Shimansky <gshiman...@gmail.com>
Subject Re: [drlvm] Using JNI methods in VM's components.
Date Fri, 20 Oct 2006 11:58:24 GMT
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


---------------------------------------------------------------------
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