[izpack-users] Error while installing my dist on Linux

Vinay Hattangadi vinayh at hotmail.com
Fri Jul 21 05:31:30 CEST 2006


Dear all,

Thanks for the solution. I took help of my colleague to enable X11 on my 
linux box and configured the DISPLAY variable. The IZPack installation ran 
smoothly.

Thanks for the help.

Best Regards,
Vinay


>From: "Miraodb" <miraodb at hotmail.com>
>Reply-To: izpack-users at lists.berlios.de
>To: <izpack-users at lists.berlios.de>
>Subject: Re: [izpack-users] Error while installing my dist on Linux
>Date: Thu, 20 Jul 2006 09:06:49 +0200
>
>Hi Guyz,
>
>We encountered this problem before and we even documented the solution (at
>least i think so...)
>
>Then, it's most probably the fact that in some distribution the console and
>environment variables are "erased" when switching between users. So, you 
>can
>type 'su -' in order to obtain all commands. With 'su -' $DISPLAY variables
>is erased and all X11 connections is refused. So, a best and fast practice
>in this way is:
>
>
>   1.. Log in your system by user
>   2.. In shell type:
>   $ echo $DISPLAY
>   the result seems to be ':0.0'. If the response isn't there you can type:
>   $ export $DISPLAY=":0.0"
>   3.. Now type $su
>   for a "normal" alias by root.
>   4.. Run: $ java -jar "package.jar"
>Hope that helps,
>Cheers,
>Fabrice
>----- Original Message -----
>From: "Bartz, Klaus" <Klaus.Bartz at coi.de>
>To: <izpack-users at lists.berlios.de>
>Sent: Thursday, July 20, 2006 8:41 AM
>Subject: Re: [izpack-users] Error while installing my dist on Linux
>
>
> > Hi Vinay,
> > this is not a problem of IzPack else your VM runs headless.
> > The VM tries to connect to the graphic server of your box and this
> > fails. Do you have X11 installed, or do you have only a console?
> > IzPack does not run on a console (only as automated installation).
> >
> > Cheers
> >
> > Klaus
> >
> > >-----Original Message-----
> > >From: izpack-users-bounces at lists.berlios.de
> > >[mailto:izpack-users-bounces at lists.berlios.de]On Behalf Of Vinay
> > >Hattangadi
> > >Sent: Thursday, July 20, 2006 7:30 AM
> > >To: izpack-users at lists.berlios.de
> > >Subject: [izpack-users] Error while installing my dist on Linux
> > >
> > >
> > >Hi,
> > >
> > >I have created an installer using IZPack v3.8.1 and the
> > >installation jar
> > >works on windows os. But when I tried to install it on Linux,
> > >I get the
> > >following error:
> > >
> > >****************** exception encountered is
> > >*********************************
> > >Exception in thread "main" java.lang.InternalError: Can't
> > >connect to X11
> > >window server using ':0.0' as the value of the DISPLAY variable.
> > >        at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
> > >        at
> > >sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.
> > >java:134)
> > >        at java.lang.Class.forName0(Native Method)
> > >        at java.lang.Class.forName(Class.java:141)
> > >        at
> > >java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(Graphi
> > >csEnvironment.java:62)
> > >        at java.awt.Font.initializeFont(Font.java:308)
> > >        at java.awt.Font.<init>(Font.java:344)
> > >        at
> > >com.izforge.izpack.gui.IzPackMetalTheme.createFont(IzPackMetalT
> > >heme.java:60)
> > >        at
> > >com.izforge.izpack.gui.IzPackMetalTheme.<init>(IzPackMetalTheme
> > >.java:50)
> > >        at
> > >com.izforge.izpack.installer.GUIInstaller.loadLookAndFeel(GUIIn
> > >staller.java:280)
> > >        at
> > >com.izforge.izpack.installer.GUIInstaller.<init>(GUIInstaller.java:113)
> > >        at
> > >sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> > >Method)
> > >        at
> > >sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeCon
> > >structorAccessorImpl.java:39)
> > >        at
> > >sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Deleg
> > >atingConstructorAccessorImpl.java:27)
> > >        at
> > >java.lang.reflect.Constructor.newInstance(Constructor.java:274)
> > >        at java.lang.Class.newInstance0(Class.java:308)
> > >        at java.lang.Class.newInstance(Class.java:261)
> > >        at
> > >com.izforge.izpack.installer.Installer.main(Installer.java:62)
> > >******************
> > >
> > >The Linux version is:
> > >Linux version 2.4.21-4.EL (bhcompile at daffy.perf.redhat.com)
> > >(gcc version
> > >3.2.3 20030502 (Red Hat Linux 3.2.3-20)) #1 Fri Oct 3 18:13:58 EDT 2003
> > >
> > >Please let me know how to resolve the problem.
> > >
> > >Best Regards,
> > >Vinay
> > >
> > >
> > >_______________________________________________
> > >izpack-users mailing list
> > >izpack-users at lists.berlios.de
> > >http://bat.berlios.de/mailman/listinfo/izpack-users
> > >
> > _______________________________________________
> > izpack-users mailing list
> > izpack-users at lists.berlios.de
> > http://bat.berlios.de/mailman/listinfo/izpack-users
> >
> >
>
>_______________________________________________
>izpack-users mailing list
>izpack-users at lists.berlios.de
>http://bat.berlios.de/mailman/listinfo/izpack-users





More information about the izpack-users mailing list