A library is what your program uses, your program calls the library code. Structure is what you write code on, and the framework invokes your code. For example, in the MVC web application, you write controllers for this, these controllers are created and called by the framework, the structure is responsible for this.
Spring is an example of a framework that also includes libraries (e.g. spring-jdbc, for example).