commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pradeep Arumalla" <pradeep.b...@gmail.com>
Subject problem with UUID code
Date Tue, 09 Jan 2007 03:50:27 GMT
hi all,

import org.apache.commons.id.uuid.UUID;
public class Uuidgen {
 public static void main(String as[]){

  System.out.println("******* "+UUID.randomUUID());

  }

}

*I am trying to generate a UUID with the above code and it throws the below
exception...I tried changing the JDK version ...tried 1.5,1.4,1.3   , did
not work, should I build the code my self.what is the procedure ?.Please
help with links etc*

java.lang.UnsupportedClassVersionError: Uuidgen (Unsupported major.minorversion
49.0)

at java.lang.ClassLoader.defineClass0(*Native Method*)

at java.lang.ClassLoader.defineClass(*ClassLoader.java:539*)

at java.security.SecureClassLoader.defineClass(*SecureClassLoader.java:123*)

at java.net.URLClassLoader.defineClass(*URLClassLoader.java:251*)

at java.net.URLClassLoader.access$100(*URLClassLoader.java:55*)

at java.net.URLClassLoader$1.run(*URLClassLoader.java:194*)

at java.security.AccessController.doPrivileged(*Native Method*)

at java.net.URLClassLoader.findClass(*URLClassLoader.java:187*)

at java.lang.ClassLoader.loadClass(*ClassLoader.java:289*)

at sun.misc.Launcher$AppClassLoader.loadClass(*Launcher.java:274*)

at java.lang.ClassLoader.loadClass(*ClassLoader.java:235*)

at java.lang.ClassLoader.loadClassInternal(*ClassLoader.java:302*)

Exception in thread "main"

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message