static void loadLibrary ( ) { try { File dir = Files . createTempDirectory ( "libjsass-" ) . toFile ( ) ; dir . deleteOnExit ( ) ; if ( System . getProperty ( "os.name" ) . toLowerCase ( ) . startsWith ( "win" ) ) { System . load ( saveLibrary ( dir , "sass" ) ) ; } System . load ( saveLibrary ( dir , "jsass" ) ) ; } catch ( Exception exception ) { LOG . warn ( exception . getMessage ( ) , exception ) ; throw new LoaderException ( exception ) ; } }
Load the shared libraries .