add try catch block for class path handling.