From 95cffe90b2c69c8834de8372bcf9a8257e469b0a Mon Sep 17 00:00:00 2001 From: Joshua Warner Date: Thu, 1 May 2014 11:26:27 -0600 Subject: [PATCH] Define user.home property on posix --- classpath/java-lang.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/classpath/java-lang.cpp b/classpath/java-lang.cpp index d0c16b0466..e651f05e5d 100644 --- a/classpath/java-lang.cpp +++ b/classpath/java-lang.cpp @@ -838,6 +838,8 @@ extern "C" JNIEXPORT jobjectArray JNICALL add(e, array, index++, "user.dir=%s", getcwd(buffer, PATH_MAX)); } + add(e, array, index++, "user.home=%s", getenv("HOME")); + #endif // not Windows {