mirror of
https://github.com/corda/corda.git
synced 2025-01-22 12:28:11 +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);
|
||||
|
||||
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, "file.separator", "/");
|
||||
local::setProperty(t, method, *properties, "path.separator", ":");
|
||||
# ifdef __APPLE__
|
||||
local::setProperty(t, method, *properties, "os.name", "Mac OS X");
|
||||
# else
|
||||
# else // not __APPLE__
|
||||
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, "user.home", getenv("HOME"));
|
||||
|
||||
char buffer[PATH_MAX];
|
||||
local::setProperty(t, method, *properties, "user.dir",
|
||||
getcwd(buffer, PATH_MAX));
|
||||
#endif
|
||||
#endif // not PLATFORM_WINDOWS
|
||||
|
||||
local::setProperty(t, method, *properties, "java.protocol.handler.pkgs",
|
||||
"avian");
|
||||
@ -3046,6 +3046,11 @@ jvmInitProperties(Thread* t, uintptr_t* arguments)
|
||||
(t, method, *properties, "sun.boot.library.path",
|
||||
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");
|
||||
#ifdef ARCH_x86_32
|
||||
local::setProperty(t, method, *properties, "os.arch", "x86");
|
||||
|
Loading…
Reference in New Issue
Block a user