diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/runtime.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/runtime.cc b/src/runtime.cc index c203ffd1c3..c6081ff152 100644 --- a/src/runtime.cc +++ b/src/runtime.cc @@ -233,11 +233,15 @@ Runtime::ParsedOptions* Runtime::ParsedOptions::Create(const Options& options, b bool compiler = false; const char* boot_class_path = getenv("BOOTCLASSPATH"); if (boot_class_path != NULL) { - parsed->boot_class_path_ = getenv("BOOTCLASSPATH"); + parsed->boot_class_path_ = boot_class_path; + } else { + parsed->boot_class_path_ = "."; } const char* class_path = getenv("CLASSPATH"); if (class_path != NULL) { - parsed->class_path_ = getenv("CLASSPATH"); + parsed->class_path_ = class_path; + } else { + parsed->class_path_ = "."; } #ifdef NDEBUG // -Xcheck:jni is off by default for regular builds... |