hotspot/src/os/linux/launcher/java_md.c
changeset 1420 d116726a4ca4
parent 1 489c9b5090e2
child 1623 a0dd9009e992
--- a/hotspot/src/os/linux/launcher/java_md.c	Mon Oct 06 11:39:34 2008 -0700
+++ b/hotspot/src/os/linux/launcher/java_md.c	Wed Oct 08 08:10:51 2008 -0700
@@ -1826,3 +1826,23 @@
 {
     return(borrowed_unsetenv(name));
 }
+/*
+ * The implementation for finding classes from the bootstrap
+ * class loader, refer to java.h
+ */
+static FindClassFromBootLoader_t *findBootClass = NULL;
+
+jclass
+FindBootStrapClass(JNIEnv *env, const char* classname)
+{
+   if (findBootClass == NULL) {
+       findBootClass = (FindClassFromBootLoader_t *)dlsym(RTLD_DEFAULT,
+          "JVM_FindClassFromBootLoader");
+       if (findBootClass == NULL) {
+           fprintf(stderr, "Error: could load method JVM_FindClassFromBootLoader");
+           return NULL;
+       }
+   }
+   return findBootClass(env, classname, JNI_FALSE);
+}
+