UnsupportedCharsetException with SISC on java 1.3

Nick Clarke <[email protected]> Wed, 18 Jul 2007 15:20:49 +1200
Newsgroups gmane.comp.java.sisc.user
Organization Core Technology
Message-ID <[email protected]>
Hi,

We recently upgraded our project from SISC 1.8.8 to SISC 1.16.6. With 
the newer version things are fine under java 1.4, but we are getting the 
following exception during startup under IBM java 1.3, which 
unfortunately I still need to support on some legacy installs:

     java.lang.NoClassDefFoundError:
     java/nio/charset/UnsupportedCharsetException

I think this is caused by the following in sisc.util.Util:
-----
     static {
         try {
             defaultCharset = Charset.forName("UTF-8");
         } catch (UnsupportedEncodingException e) {
             // I think this is a "can't happen" error,
             // since Java natively supports UTF-8
             throw new ExceptionInInitializerError(e);
         } catch (java.nio.charset.UnsupportedCharsetException e) {
             // this one, too
             throw new ExceptionInInitializerError(e);
         }
     }
-----
The class java.nio.charset.UnsupportedCharsetException does not exist 
under java 1.3.

However the 'Required Environment' section in the SISC manual says that 
java 1.3 should work:
http://sisc-scheme.org/manual/html/ch02.html

Is java 1.3 still supported?

cheers,

- Nick

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/