Keeping the jar file in the same folder or package does not add it to the class path. You are required to mention the path of the jar in your class path when running your java program.