How to add a file .jar to an Android project in Eclipse

Adding a file .jar from the menu of Eclipse, File -> Properties -> Java Build Path -> Libraries -> Add External JARs…, causes an error, the project compiles but at runtime you get the error “NoClassDefFoundError” as if the file .jar was missing in the project.