252 |
252 |
253 // Property list |
253 // Property list |
254 static SystemProperty* _system_properties; |
254 static SystemProperty* _system_properties; |
255 |
255 |
256 // Quick accessor to System properties in the list: |
256 // Quick accessor to System properties in the list: |
257 static SystemProperty *_java_ext_dirs; |
|
258 static SystemProperty *_java_endorsed_dirs; |
|
259 static SystemProperty *_sun_boot_library_path; |
257 static SystemProperty *_sun_boot_library_path; |
260 static SystemProperty *_java_library_path; |
258 static SystemProperty *_java_library_path; |
261 static SystemProperty *_java_home; |
259 static SystemProperty *_java_home; |
262 static SystemProperty *_java_class_path; |
260 static SystemProperty *_java_class_path; |
263 static SystemProperty *_sun_boot_class_path; |
261 static SystemProperty *_sun_boot_class_path; |
264 |
262 |
265 // Meta-index for knowing what packages are in the boot class path |
263 // Meta-index for knowing what packages are in the boot class path |
266 static char* _meta_index_path; |
264 static char* _meta_index_path; |
267 static char* _meta_index_dir; |
265 static char* _meta_index_dir; |
|
266 |
|
267 // temporary: to emit warning if the default ext dirs are not empty. |
|
268 // remove this variable when the warning is no longer needed. |
|
269 static char* _ext_dirs; |
268 |
270 |
269 // java.vendor.url.bug, bug reporting URL for fatal errors. |
271 // java.vendor.url.bug, bug reporting URL for fatal errors. |
270 static const char* _java_vendor_url_bug; |
272 static const char* _java_vendor_url_bug; |
271 |
273 |
272 // sun.java.launcher, private property to provide information about |
274 // sun.java.launcher, private property to provide information about |
584 |
586 |
585 // Miscellaneous System property value getter and setters. |
587 // Miscellaneous System property value getter and setters. |
586 static void set_dll_dir(char *value) { _sun_boot_library_path->set_value(value); } |
588 static void set_dll_dir(char *value) { _sun_boot_library_path->set_value(value); } |
587 static void set_java_home(char *value) { _java_home->set_value(value); } |
589 static void set_java_home(char *value) { _java_home->set_value(value); } |
588 static void set_library_path(char *value) { _java_library_path->set_value(value); } |
590 static void set_library_path(char *value) { _java_library_path->set_value(value); } |
589 static void set_ext_dirs(char *value) { _java_ext_dirs->set_value(value); } |
591 static void set_ext_dirs(char *value) { _ext_dirs = os::strdup_check_oom(value); } |
590 static void set_endorsed_dirs(char *value) { _java_endorsed_dirs->set_value(value); } |
|
591 static void set_sysclasspath(char *value) { _sun_boot_class_path->set_value(value); } |
592 static void set_sysclasspath(char *value) { _sun_boot_class_path->set_value(value); } |
592 static void append_sysclasspath(const char *value) { _sun_boot_class_path->append_value(value); } |
593 static void append_sysclasspath(const char *value) { _sun_boot_class_path->append_value(value); } |
593 static void set_meta_index_path(char* meta_index_path, char* meta_index_dir) { |
594 static void set_meta_index_path(char* meta_index_path, char* meta_index_dir) { |
594 _meta_index_path = meta_index_path; |
595 _meta_index_path = meta_index_path; |
595 _meta_index_dir = meta_index_dir; |
596 _meta_index_dir = meta_index_dir; |
596 } |
597 } |
597 |
598 |
598 static char* get_java_home() { return _java_home->value(); } |
599 static char* get_java_home() { return _java_home->value(); } |
599 static char* get_dll_dir() { return _sun_boot_library_path->value(); } |
600 static char* get_dll_dir() { return _sun_boot_library_path->value(); } |
600 static char* get_endorsed_dir() { return _java_endorsed_dirs->value(); } |
|
601 static char* get_sysclasspath() { return _sun_boot_class_path->value(); } |
601 static char* get_sysclasspath() { return _sun_boot_class_path->value(); } |
602 static char* get_meta_index_path() { return _meta_index_path; } |
602 static char* get_meta_index_path() { return _meta_index_path; } |
603 static char* get_meta_index_dir() { return _meta_index_dir; } |
603 static char* get_meta_index_dir() { return _meta_index_dir; } |
604 static char* get_ext_dirs() { return _java_ext_dirs->value(); } |
604 static char* get_ext_dirs() { return _ext_dirs; } |
605 static char* get_appclasspath() { return _java_class_path->value(); } |
605 static char* get_appclasspath() { return _java_class_path->value(); } |
606 static void fix_appclasspath(); |
606 static void fix_appclasspath(); |
|
607 |
607 |
608 |
608 // Operation modi |
609 // Operation modi |
609 static Mode mode() { return _mode; } |
610 static Mode mode() { return _mode; } |
610 static bool is_interpreter_only() { return mode() == _int; } |
611 static bool is_interpreter_only() { return mode() == _int; } |
611 |
612 |