harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Beliaev (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-2335) The DRLVM fails to start if -Djava.library.path specified
Date Wed, 17 Jan 2007 20:19:29 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-2335?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12465544
] 

Vladimir Beliaev commented on HARMONY-2335:
-------------------------------------------

Ok, the bug cause is that System.loadLibrary does not search system native libraries (like
ICUInterface34) in the directory where these libraries are located (let's call it <boot.library.path>).
If user does not specify -Djava.library.path, the "default" value of this property contains
<boot.library.path>, so DRLVM works fine.

Originally this path was specified by vm.boot.library.path property which is referenced from
java/lang/Runtime#loadLibrary0 method. Now this property belongs to vm properties pool (is
not visible for java code) and it is set to empty string "" - does not work.

There are set of possible resolutions of this issue. The chosen one seems to be the simplest
and most correct based on other VMs behaviour. DRLVM has already sun.boot.library.path property
set in java pool for compatibility with external JDWP agents. I've moved vm.boot.library.path
property definition to java pool also and set it to same value as sun.boot.library.path has.

Vladimir


> The DRLVM fails to start if -Djava.library.path specified
> ---------------------------------------------------------
>
>                 Key: HARMONY-2335
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2335
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Evgueni Brevnov
>            Priority: Minor
>
> The following message occured when the DRLVM started from the directory not equal to
<jre>/bin with the -Djava.library.path specified:
> C:\.usr\bev\harmony-drlvm-shutdown\trunk\build\win_ia32_msvc_debug\deploy\jre\bin\java.exe
-Djava.library.path=any Hello
> HMYEXEL062E Internal VM error: Failed to create Java VM
> FAILED to invoke JVM.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message