Stefan Bodewig wrote:
> On Thu, 26 Sep 2002, jean-frederic clere
> <[EMAIL PROTECTED]> wrote:
>
>
>>Has someone a better solution or an idea?
>
>
> Try to load a class and catch the ClassNotFoundException - properties
> have not been reliable so far. But then again be careful with the
> class you chose, Kaffe will include ThreadLocal (and therefore look
> like 1.2) but doesn't include Swing for example.
Something like the following to check that it is at least 1.3:
+++
import java.util.Timer;
public class Version {
static public void main(String[] args) {
try {
Timer time = new Timer();
time.cancel();
}
catch (Exception ex) {
System.out.println("Exception " + ex );
ex.printStackTrace();
}
}
}
+++
>
> Stefan
>
> --
> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>