Check for multiple versions of httpcore .jar in the class path and remove if any. If there are duplicates, it reads the one which appears first in your classpath.
- Check classpath in Eclipse: Run > Run Configurations > Classpath
- Leave only project dependencies: Select the project > Edit > Edit Runtime classpath > check "Only include exported entries" > Ok > Run
thanks jayani
ReplyDeletewat abt in netbeans.?