Had similar kind of problem in AIX. After setting a couple of environment variables like DISPLAY and by including a 3rd party utility, PJA.jar (and pja_tools.jar) we were ok with. Download eTeks's PJA toolkit and follow instructions as in its doc. Java version is a big headache again. Anything less than version 1.4 has a laborious process of lengthy args to configure. Try your luck.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Barry Klawans Sent: Saturday, August 12, 2006 10:40 PM To: 'jasperreports-questions@lists.sourceforge.net' Subject: Re: [jasperreports-questions] Headless headache The java graphics layer needs the X libraries installed even when running in headless mode. It uses the X libraries to get font metrics, etc, so you have to have the libraries installed. Headless mode will allow you to run java applications (include JasperReports) without a running X server though. (If headless mode isn't enabled correctly you will get an error about being unable to connect to display ":0.0".) -Barry On Aug 12, 2006, at 9:38 AM, Morten wrote: > > Hi, > > I'm trying to get a report running under a Gentoo Linux server with > no X > installed. I get the following: > > java.lang.UnsatisfiedLinkError: > /opt/sun-jdk-1.4.2.10/jre/lib/i386/libawt.so: libXp.so.6: cannot open > shared object file: No such file or directory > at java.lang.ClassLoader$NativeLibrary.load(Native Method) > at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1586) > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1503) > at java.lang.Runtime.loadLibrary0(Runtime.java:788) > at java.lang.System.loadLibrary(System.java:834) > > > I'm running Tomcat 5.0.28 with > > CATALINA_OPTS="$CATALINA_OPTS -Djava.awt.headless=true" > > > But still Jasper reports requires the libXp.so.6 and I'm stumped. Any > tips much appreciated. > > Does the exception mean that the -Djava.awt.headless=true does not get > picked up by the JRE or do I need libXp.so.6 either way? > > Thanks. > > Morten > > > ---------------------------------------------------------------------- > --- > Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > jasperreports-questions mailing list > jasperreports-questions@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jasperreports-questions ------------------------------------------------------------------------ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ jasperreports-questions mailing list jasperreports-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jasperreports-questions This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ jasperreports-questions mailing list jasperreports-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jasperreports-questions