Hi Shreyans thanks for the link, but that didn't work. If you are a java programmer you can simulate the problem I have mentioned above.
In-fact I have mentioned/made entry for the class file of Library Class into CrystalReportEngine-configuration.xml also but no luck.
I have learned that putting CrystalReportEngine-configuration.xml into classpath will be picked up by engine automatically. So I didn't write any code to load that. Do you think that we need to load the configuration programatically. Do you know the process.