Home Code Other Software

Table of Contents


The org.clapper.util Java Utility Library is a library of miscellaneous utility classes and methods. As a general-purpose set of tools, this API is a conceptual extension of the JDK. I use this library myself, so I frequently update and revise its contents.


The Java Utility Library is published to my personal Maven repository at maven.clapper.org.

Using from Maven

If you’re building your project with Maven, add the following repository to your pom.xml:

    <name>org.clapper Maven Repo</name>

Then, add the following dependency to your <dependencies> section:


Building with Apache Buildr

If you’re using Apache Buildr, the following lines should do the trick:

repositories.remote << 'http://maven.clapper.org/'
compile.with 'org.clapper:javautil:jar:3.1.2'

Installing Manually

If you’re not using Maven, or Buildr, or SBT or somthing else reasonably sane (e.g., if you’re still using Ant), you’ll have to download the jar and its dependent jars, and install them manually.

The compiled jar is located at http://maven.clapper.org/org/clapper/javautil/3.1.1/javautil-3.1.1.jar.

This software assumes a 1.5 JDK or better, and it depends on the following third-party libraries:

However… you’re much better off using a Maven-aware build tool, such as Maven, SBT or Buildr, if you can.


Building from Source



The source for the Java Utility Library is in a GitHub repository. The easiest way to obtain it is via Git, which runs on Unix-like operating systems (such as Linux and FreeBSD), Windows, and Mac OS X.


The library builds with Apache Buildr, because Buildr’s Ruby-based build files are more powerful and flexible, and much easier to read and maintain, than Maven’s POM files. If you’re building this library from source, you must first download and install Buildr.


First, clone a copy of the Git repository:

git clone git://github.com/bmc/javautil.git

Then, change your working directory to the newly-created javautil directory, and type:

buildr compile

to compile the code. To install it in your local Maven repository, type

buildr install

Copyright and License

This library is copyright © 2004-2011 Brian M. Clapper and is released under a BSD License.


I gladly accept patches from their original authors. Feel free to email patches to me or to fork the GitHub repository and send me a pull request. Along with any patch you send: