I know of Android Library projects, which allow you to create a shared-source project that can be pulled into Android Applications as needed. However, that requires that sou
.jar is just a .zip file which contains .class file
(you can try change extension of any .jar file to .zip then see the result).
Easily, you can create any .jar library for any purpose by zipping .class file.