> >         if (!javaversion14orabovedetected)
> >         {
> >
System.out.println(ELABORATE_USER_HELP_REGARDING_UPGRADE_TO_JAVA_VERSION_1_4
);
> >                 System.exit(1);
> >         }
>
> IMHO better idea than checking the version number is checking features
> (e.g. if loading of NIO classes creates ClassNotFoundExceptions...).
>
>
> mihi
>

First iteration of the test is already in the code (3 hours old right now):

}catch(NoClassDefFoundError e){

if(e.getMessage().indexOf("java/nio/channels/spi/AbstractInterruptibleChanne
l") != -1){
        String error = "Your Java installation is too old (insufficient NIO
support). Please update it to 1.4.1 or later; you can do that at
http://java.sun.com/ .";
        System.err.println(error);
        Core.logger.log(Node.class, error, Core.logger.ERROR);
        System.exit(1);
    }else
        throw e;
}


Not tested yet though.

/N

_______________________________________________
devl mailing list
[EMAIL PROTECTED]
http://hawk.freenetproject.org:8080/cgi-bin/mailman/listinfo/devl

Reply via email to