The program under test is throwing exceptions. Your code catches these exceptions and prints out
You should change your code to print out the kind of exception and the stack trace associated with the exception to see where it is coming from (ie, the call stack for the loadClass method that is throwing the exception.
Note that you are getting both caught and uncaught exceptions. You will probably find that these exceptions are part of the normal class loading process, and that they are caught and handled by the class loader. You can change your code to not request caught exceptions if you don't want to get these.
I chose to try ur second option & if i try to ignore all exception the code hangs up & doesnt proceed further.Since im a newbie to java can u please give me the code for the first option.Also id be really grateful if u can share ur email id with me so that i can contact u directly thru email