private void loadPerpro () {Properties props = new Properties (); try {String sysPath = System.getProperty ( "user.dir"); System.out.println ( "application path:" sysPath); FileInputStream fis = new FileInputStream (new File (sysPath "/ datatoldapsyn.perproties")); props.load (fis); this.strConnectString = (String) props.getProperty ( "dbConnectString"); this.strUser = (String) props.getProperty ( "dbUser "); This.strpwd = (string) Props.getProperty; this.ldaphost = (string) Props.getProperty (" ldaphost "); this.ldaporg = (string) Props.getProperty (" ldaporg ") ; this.ldapDN = (String) props.getProperty ( "ldapDN"); this.ldapPWD = (String) props.getProperty ( "ldapPWD");} catch (FileNotFoundException ex) {ex.printStackTrace ();} catch (IOException EX1) {ex1.printstacktrace ();
}