public static void initialize ( ) { String homeDirName = System . getProperty ( "jdcp.home" ) ; File homeDir ; if ( homeDirName != null ) { homeDir = new File ( homeDirName ) ; } else { homeDir = FileUtil . getApplicationDataDirectory ( "jdcp" ) ; System . setProperty ( "jdcp.home" , homeDir . getPath ( ) ) ; } homeDir . mkdir ( ) ; if ( System . getProperty ( "derby.system.home" ) == null ) { System . setProperty ( "derby.system.home" , homeDir . getPath ( ) ) ; } }
Performs initialization for the currently running JDCP application .