How to create a UUID or GUID in Java 1.4

I suppose there is no chance convincing the client to get off an unsupported version of Java? Which if the answer is no then your only recourse is to use/modify one of the open source implementations from the web. You mentioned two of them in your question, another one you might want to look at is JUG.

And oh yea, your reference to java.util.UUID failed because it's only available in Java 5 and up.

Good luck!


java.util.UUID was added to JDK since 1.5.

For a simple lightweight implementation, take a look at this blog post: http://lzkyo.iteye.com/blog/453120.

Tags:

Java

Uuid