Jump to content
JasperReports Library 7.0 is now available ×

Can't connect to X11 window server


2005 IR Help

Recommended Posts

By: Brad Balmer - bbalmer

Can't connect to X11 window server

2004-06-29 06:53

I am trying to run the example webapp and am getting an error that I can't connect to X11 window server.

 

I am using Linux (Mandrake 9.X) and JBoss 3.2.3.

 

Any ideas of what I need to modify to allow the PDF to be generated and displayed to me?

 

Thanks.

 

 

 

 

 

 

 

By: Javed Momin - javedmomin

RE: Can't connect to X11 window server

2004-06-30 03:43

1. On the Unix machine, change directories to the following location:

cd /usr/openwin/lib/X11/fonts/F3

 

2. Use the UNIX command "makedbf" on the files ZapfDingbats.f3b and symbol as follows:

makebdf -v -M -x -4,5,6,7,8,9,10,11,12,14,16,18,20,22 ZapfDingbats.f3b

makebdf -v -M -x -4,5,6,7,8,9,10,11,12,14,16,18,20,22 symbol.f3b

This will create 14 files ending with .bdf for each original file. Note that the makedbf command can be found in the usr/openwin/bin directory.

 

3. Copy all the .bdf files to the following directory:

/usr/openwin/lib/X11/fonts/TrueType

 

4. Run the "mkfontdir" command on the TrueType directory:

mkfontdir /usr/openwin/lib/X11/fonts/TrueType

 

5. Inform the X server about the font changes, type the following:

xset fp rehash

 

6. Set the environment variable, JAVA_FONTS to point to the TrueType directory. For example, in C Shell type:

setenv JAVA_FONTS /usr/openwin/lib/X11/fonts/TrueType

 

Common Desktop Environment (CDE)

If working on a Common Desktop Environment (CDE), perform the following additional steps. These steps are required to start each X session, because the xset only works for the current session.

 

1. Copy /usr/dt/config/Xconfig to /etc/dt/config/Xconfig.

cp /usr/dt/config/Xconfig /etc/dt/config/Xconfig

 

2. Edit the Xconfig file, and add the following to it.

# Add ISO 8859-2 font directory

# (/usr/openwin/lib/X11/fonts/iso_8859.2)

# to FontPath.

Dtlogin.fontPathTail: /usr/openwin/lib/X11/fonts/TrueType

 

3. Force the dtlogin process to reread the configuration file. Type:

/etc/init.d/dtlogin reset

 

 

 

 

 

 

 

 

 

By: Sean Barenz - forceinfinity

RE: Can't connect to X11 window server

2004-06-30 08:30

Easiest way to solve the problem is to put this command switch when firing up the JVM.

 

-Djava.awt.headless=true

 

This will put your JVM into headless state and you won't need X server or any other graphics engine for Jasper to latch on to. If you are running Tomcat, you might want to make an environment variable JAVA_OPTS and place this string there

 

HTH

SeanB

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...