users@glassfish.java.net

sun.io.MalformedInputException when installing glassfish

From: Hannes Stauss <hannes.stauss_at_stauss.at>
Date: Fri, 10 Feb 2006 14:12:34 +0100

Hi!
When I try to install glassfish as described on my linux box with UTF-8
encoding I get following exception (glassfish-installer-9.0-b36.jar):

Exception in thread "main" sun.io.MalformedInputException
        at sun.io.ByteToCharUTF8.convert(ByteToCharUTF8.java:262)
        at
sun.nio.cs.StreamDecoder$ConverterSD.convertInto(StreamDecoder.java:314)
        at
sun.nio.cs.StreamDecoder$ConverterSD.implRead(StreamDecoder.java:364)
        at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:250)
        at java.io.InputStreamReader.read(InputStreamReader.java:212)
        at java.io.BufferedReader.fill(BufferedReader.java:157)
        at java.io.BufferedReader.readLine(BufferedReader.java:320)
        at java.io.BufferedReader.readLine(BufferedReader.java:383)
        at
 com.sun.tools.xjc.installer.LicenseForm.<init>(LicenseForm.java:71) at
 com.sun.tools.xjc.installer.Main.main(Main.java:51)

I use IBM-JDK 1.5:

java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build pxi32dev-20051104)
IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Linux x86-32 j9vmxi3223-20051103
(JIT enabled)
J9VM - 20051027_03723_lHdSMR
JIT - 20051027_1437_r8
GC - 20051020_AA)
JCL - 20051102


If I use sun jdk 1.5 I get following error on the commandline:
$ /usr/lib/j2sdk1.5-sun/bin/java -Xmx256m glassfish-installer-9.0-b36.jar
Exception in thread "main" java.lang.NoClassDefFoundError:
glassfish-installer-9/0-b36/jar
$


if I unzip the jar and start the glassfish.class directly I get same
 exception as with IBM-JDK above??

Help appreciated.

Thanks

Hannes

-------------------------------------------------------

-------------------------------------------------------