I am using Eclipse platform for Java development. There are pre-existing jar files which are being referenced in code (added in build path). It is very surprising for me that some of the jars are not getting recognized in eclipse i.e. Eclipse gives build errors about the classes belonging to some jars. Although I am able to unzip and view java classes from those jar files.
I further watched closely and found that these jars are not getting exploded in package explorer as well i.e. I am not able to see META-INF folder and jar classes in package explorer of eclipse. But I am able to see these thru winzip utility.
Thanks for looking into this issue. I am able to find out root cause of this issue. Actually the jar files were copied to local windows machine from remote windows machine using clipboard. In this way, jar files are copied in ASCII mode which Eclipse or application is not able to recognize classes in it.
Now I have copied jars using copy command in windows with /B parameter (binary mode), these are now working as expected.
Thanks again!