A common problem when JAR files are not imported into Eclipse, is the error: “… cannot be resolved to a type”
A quick fix is to ensure that you have imported the jar library into Eclipse. This is quite easily done as follows:
- In Eclipse – right click on the project concerned
- Click on “Java Build Path”
- Click on “Add External JARs”
- Locate your JAR file, and bob’s your uncle ?