users@glassfish.java.net

Re: sun.io.MalformedInputException when installing glassfish

From: Amy Roh <Amelia.Roh_at_Sun.COM>
Date: Fri, 10 Feb 2006 06:13:48 -0800

Hi Hannes,

Hannes Stauss wrote:

>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
>
>
Can you try with the java binary directory to the path, use "PATH=/usr/java/jdk1.5.0_06/bin:$PATH /usr/java/jdk1.5.0_06/bin/java -Xmx256m -jar glassfish-installer-9.0-b28.jar"
instead of "/usr/java/jdk1.5.0_06/bin/java -Xmx256m -jar glassfish-installer-9.0-b28.jar"?

Thanks,
Amy

>$
>
>
>if I unzip the jar and start the glassfish.class directly I get same
> exception as with IBM-JDK above??
>
>Help appreciated.
>
>Thanks
>
>Hannes
>
>-------------------------------------------------------
>
>-------------------------------------------------------
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>
>