mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +00:00
specify java.home system property in GNU Classpath build
Currently, we just set this to /tmp (or the equivalent) since Avian doesn't really have a home. This avoids a NullPointerException from javax/xml/parsers/SAXParserFactory.
This commit is contained in:
parent
664cb3cd39
commit
20f92bbd05
@ -160,6 +160,7 @@ Avian_gnu_classpath_VMSystemProperties_preInit
|
||||
TCHAR buffer[MAX_PATH];
|
||||
GetTempPath(MAX_PATH, buffer);
|
||||
setProperty(t, method, properties, "java.io.tmpdir", buffer);
|
||||
setProperty(t, method, properties, "java.home", buffer);
|
||||
|
||||
setProperty(t, method, properties, "user.home",
|
||||
_wgetenv(L"USERPROFILE"), "%ls");
|
||||
@ -178,6 +179,7 @@ Avian_gnu_classpath_VMSystemProperties_preInit
|
||||
setProperty(t, method, properties, "os.name", "Linux");
|
||||
# endif
|
||||
setProperty(t, method, properties, "java.io.tmpdir", "/tmp");
|
||||
setProperty(t, method, properties, "java.home", "/tmp");
|
||||
setProperty(t, method, properties, "user.home", getenv("HOME"));
|
||||
setProperty(t, method, properties, "user.dir", getenv("PWD"));
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user