commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pradeep Arumalla" <pradeep.b...@gmail.com>
Subject Re: problem with UUID code
Date Tue, 09 Jan 2007 15:07:47 GMT
Thanks Jorg,
   I could run the program after changing my eclipse JDK to 1.5_06 , I saw
the version in the jar file manifest.Yeah, I am going to build it myself or
try to find a jar built with 1.4 version.

I appreciate your help.
-Pradeep


On 1/9/07, Jörg Schaible <Joerg.Schaible@elsag-solutions.com> wrote:
>
> Hi Pradeep,
>
> Pradeep Arumalla wrote on Tuesday, January 09, 2007 4:50 AM:
>
> > 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)
>
> [snip]
>
> This error simply means, that you tried to run your application with a JDK
> < 1.5 and *your* class was compiled with JDK 1.5. This will not work.
>
> Nevertheless I've checked the nightlies and that id package was also build
> with JDK 1.5. If you need a version for a previous JDK, you will have to
> build the package yourself.
>
> - Jörg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>

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