Antonio Gallardo dijo:
> OK. I got it.
>
> Lets try your solution and if this work. I will fix the CVS. :-D
>
> While you make the test I will find the java property that allow to check
> the version of Java. OK?

Hi Joakim:

I found a System property called

java.specification.version=1.4

We can make use of it as follow:

if "1.4".equals(System.getProperty("java.specification.version"))
{
  // Here code for 1.4
} else {
  // Here code for 1.3
}

Even better we can define a boolean variable "isJava14" at the startup
that just set a boolean and then test as above but using it. That way we
don't need to "read" every time the property.

Is this OK?

Best Regards,

Antonio Gallardo


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to