src/solaris/classes/sun/print/CUPSPrinter.java

Print this page

        

*** 75,85 **** private static int cupsPort = 0; static { // load awt library to access native code java.security.AccessController.doPrivileged( ! new sun.security.action.LoadLibraryAction("awt")); libFound = initIDs(); if (libFound) { cupsServer = getCupsServer(); cupsPort = getCupsPort(); } --- 75,90 ---- private static int cupsPort = 0; static { // load awt library to access native code java.security.AccessController.doPrivileged( ! new java.security.PrivilegedAction<Void>() { ! public Void run() { ! System.loadLibrary("awt"); ! return null; ! } ! }); libFound = initIDs(); if (libFound) { cupsServer = getCupsServer(); cupsPort = getCupsPort(); }