src/solaris/native/sun/awt/awt_LoadLibrary.c

Print this page

        

*** 103,113 **** len = strlen(buf); p = strrchr(buf, '/'); /* * The code below is responsible for: ! * 1. Loading appropriate awt library, i.e. xawt/libmawt or headless/libwawt * 2. Setting "awt.toolkit" system property to use the appropriate Java toolkit class, * (if user has specified the toolkit in env varialble) */ propname = (*env)->NewStringUTF(env, "awt.toolkit"); --- 103,113 ---- len = strlen(buf); p = strrchr(buf, '/'); /* * The code below is responsible for: ! * 1. Loading appropriate awt library, i.e. libawt_xawt or libawt_headless * 2. Setting "awt.toolkit" system property to use the appropriate Java toolkit class, * (if user has specified the toolkit in env varialble) */ propname = (*env)->NewStringUTF(env, "awt.toolkit");
*** 128,141 **** } } /* Calculate library name to load */ if (AWTIsHeadless()) { ! strncpy(p, "/headless/libmawt.so", MAXPATHLEN-len-1); } else { /* Default AWT Toolkit on Linux and Solaris is XAWT. */ ! strncpy(p, "/xawt/libmawt.so", MAXPATHLEN-len-1); } if (toolkit) { (*env)->DeleteLocalRef(env, toolkit); } --- 128,141 ---- } } /* Calculate library name to load */ if (AWTIsHeadless()) { ! strncpy(p, "/libawt_headless.so", MAXPATHLEN-len-1); } else { /* Default AWT Toolkit on Linux and Solaris is XAWT. */ ! strncpy(p, "/libawt_xawt.so", MAXPATHLEN-len-1); } if (toolkit) { (*env)->DeleteLocalRef(env, toolkit); }