UUID

Java 1.4 (and before)

Java Uuid Generator (JUG)

http://jug.safehaus.org/

Sample

UUID uuid = UUIDGenerator.getInstance().generateRandomBasedUUID();

Maven 2

<dependency>
  <groupId>org.safehaus.jug</groupId>
  <artifactId>jug</artifactId>
  <version>2.0.0</version>
  <classifier>asl</classifier>
</dependency>

https://weezy/svn/development/sample/java/sample-jug-uuid

Java 1.5

http://java.sun.com/j2se/1.5.0/docs/api/java/util/UUID.html