* src/vm/properties.c (properties_init): Moved setting java.home into
authortwisti <none@none>
Tue, 21 Aug 2007 18:26:33 +0000 (18:26 +0000)
committertwisti <none@none>
Tue, 21 Aug 2007 18:26:33 +0000 (18:26 +0000)
WITH_CLASSPATH_GNU, otherwise it's done twice for WITH_CLASSPATH_SUN.

src/vm/properties.c

index abbbe864ce82081c87c76871e5fbddf1048cc831..e1c8cbc7c1928ffcc30c58515165ec6f198d6af2 100644 (file)
@@ -22,7 +22,7 @@
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
    02110-1301, USA.
 
-   $Id: properties.c 8382 2007-08-21 13:05:42Z twisti $
+   $Id: properties.c 8389 2007-08-21 18:26:33Z twisti $
 
 */
 
@@ -116,17 +116,6 @@ bool properties_init(void)
 
        /* fill in system properties */
 
-       /* add /jre to java.home property */
-
-       len = strlen(env_java_home) + strlen("/jre") + strlen("0");
-
-       java_home = MNEW(char, len);
-
-       strcpy(java_home, env_java_home);
-       strcat(java_home, "/jre");
-
-       properties_add("java.home", java_home);
-
        properties_add("java.vm.specification.version", "1.0");
        properties_add("java.vm.specification.vendor", "Sun Microsystems Inc.");
        properties_add("java.vm.specification.name", "Java Virtual Machine Specification");
@@ -150,6 +139,17 @@ bool properties_init(void)
 
 # if defined(WITH_CLASSPATH_GNU)
 
+       /* Add /jre to java.home property. */
+
+       len = strlen(env_java_home) + strlen("/jre") + strlen("0");
+
+       java_home = MNEW(char, len);
+
+       strcpy(java_home, env_java_home);
+       strcat(java_home, "/jre");
+
+       properties_add("java.home", java_home);
+
        /* get properties from system */
 
        cwd      = _Jv_getcwd();