harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Varlamov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-2321) [classlib][launcher] Launcher fails to find properties location when bad -Djava.home is specified on the command line
Date Mon, 07 May 2007 11:46:15 GMT

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

Alexey Varlamov commented on HARMONY-2321:

The current design supports modularity in a nice way and I don't we need to alter the main
idea, but fix particular impl flaws.
Most simple solution is to use more specific property name for jvm location, like "org.apache.harmony.home".
More robust solution would be to introduce concept of categories of properties (user vs system)
in VMI, as it is done in DRLVM impl. BTW, cmd-line syntax of RI implies such separation, too
(-D vs -XX:). Then launcher should setup java.home as a system property and luni natives should
use the system property value (as opposite to current user property) for bootclasspath calculation.

> [classlib][launcher] Launcher fails to find properties location when bad -Djava.home
is specified on the command line
> ---------------------------------------------------------------------------------------------------------------------
>                 Key: HARMONY-2321
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2321
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: All
>            Reporter: Gregory Shimansky
> A short investigation shows that launcher parses -Djava.home passed on the command line.
Later on while classlib is initialized the function readClassPathFromPropertiesFile calls
properties_load with file name formed as ${java.home}/lib/boot/bootclasspath.properties. If
this file is not found and properties_load, then no value is assigned to org.apache.harmony.boot.class.path.
> I think this system is wrong. The launcher should not pay attention to java.home passed
on the command line. The location should be found from the executable path probably. RI doesn't
crash or fail its boot classes when I specify bad -Djava.home on the command line.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message