mirror of
https://github.com/corda/corda.git
synced 2025-05-29 21:54:26 +00:00
set sun.boot.class.path property in jvmInitProperties
This commit is contained in:
parent
7740005c11
commit
c3b72a3dd5
@ -3015,22 +3015,22 @@ jvmInitProperties(Thread* t, uintptr_t* arguments)
|
|||||||
GetCurrentDirectory(MAX_PATH, buffer);
|
GetCurrentDirectory(MAX_PATH, buffer);
|
||||||
|
|
||||||
local::setProperty(t, method, *properties, "user.dir", buffer);
|
local::setProperty(t, method, *properties, "user.dir", buffer);
|
||||||
#else
|
#else // not PLATFORM_WINDOWS
|
||||||
local::setProperty(t, method, *properties, "line.separator", "\n");
|
local::setProperty(t, method, *properties, "line.separator", "\n");
|
||||||
local::setProperty(t, method, *properties, "file.separator", "/");
|
local::setProperty(t, method, *properties, "file.separator", "/");
|
||||||
local::setProperty(t, method, *properties, "path.separator", ":");
|
local::setProperty(t, method, *properties, "path.separator", ":");
|
||||||
# ifdef __APPLE__
|
# ifdef __APPLE__
|
||||||
local::setProperty(t, method, *properties, "os.name", "Mac OS X");
|
local::setProperty(t, method, *properties, "os.name", "Mac OS X");
|
||||||
# else
|
# else // not __APPLE__
|
||||||
local::setProperty(t, method, *properties, "os.name", "Linux");
|
local::setProperty(t, method, *properties, "os.name", "Linux");
|
||||||
# endif
|
# endif // not __APPLE__
|
||||||
local::setProperty(t, method, *properties, "java.io.tmpdir", "/tmp");
|
local::setProperty(t, method, *properties, "java.io.tmpdir", "/tmp");
|
||||||
local::setProperty(t, method, *properties, "user.home", getenv("HOME"));
|
local::setProperty(t, method, *properties, "user.home", getenv("HOME"));
|
||||||
|
|
||||||
char buffer[PATH_MAX];
|
char buffer[PATH_MAX];
|
||||||
local::setProperty(t, method, *properties, "user.dir",
|
local::setProperty(t, method, *properties, "user.dir",
|
||||||
getcwd(buffer, PATH_MAX));
|
getcwd(buffer, PATH_MAX));
|
||||||
#endif
|
#endif // not PLATFORM_WINDOWS
|
||||||
|
|
||||||
local::setProperty(t, method, *properties, "java.protocol.handler.pkgs",
|
local::setProperty(t, method, *properties, "java.protocol.handler.pkgs",
|
||||||
"avian");
|
"avian");
|
||||||
@ -3046,6 +3046,11 @@ jvmInitProperties(Thread* t, uintptr_t* arguments)
|
|||||||
(t, method, *properties, "sun.boot.library.path",
|
(t, method, *properties, "sun.boot.library.path",
|
||||||
static_cast<local::MyClasspath*>(t->m->classpath)->libraryPath);
|
static_cast<local::MyClasspath*>(t->m->classpath)->libraryPath);
|
||||||
|
|
||||||
|
local::setProperty
|
||||||
|
(t, method, *properties, "sun.boot.class.path",
|
||||||
|
static_cast<Finder*>
|
||||||
|
(systemClassLoaderFinder(t, root(t, Machine::BootLoader)))->path());
|
||||||
|
|
||||||
local::setProperty(t, method, *properties, "file.encoding", "ASCII");
|
local::setProperty(t, method, *properties, "file.encoding", "ASCII");
|
||||||
#ifdef ARCH_x86_32
|
#ifdef ARCH_x86_32
|
||||||
local::setProperty(t, method, *properties, "os.arch", "x86");
|
local::setProperty(t, method, *properties, "os.arch", "x86");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user