Export your library as a jar. Then add that jar to the classpath of the project you wish to use it in.
http://download.oracle.com/javase/tutorial/deployment/jar/...