Re: UnsupportedCharsetException with SISC on java 1.3

"Scott G. Miller" <[email protected]> Fri, 20 Jul 2007 11:40:14 -0500
Newsgroups gmane.comp.java.sisc.user
Message-ID <[email protected]>
It should be.  It looks easy enough to fix, though that first class 
should definitely be present in even an IBM JVM I think.	

On Wed, Jul 18, 2007 at 03:20:49PM +1200, Nick Clarke wrote:
> 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/
> _______________________________________________
> Sisc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sisc-users
> 

-- 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/