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