I’m trying to set up Jenkins on a RackSpace ArchLinux Cloud Server, but I’ve been unable to.
Whenever I try to access Jenkins site, I get this error:
On my fedora 17 64Bit machine, I had OpenJDK 1.7 installed and I yum installed Jenkins which was having the same issue. Setting up -Djava.awt.headless=true did not help.
Finally solved the issue by installing dejavu-sans-fonts:
yum install dejavu-sans-fonts
Having an ArchLinux 64 bit headless server, I have successfully configured jenkins to work by following steps:
added to /etc/conf.d/tomcat7:
CATALINA_OPTS="-Djava.awt.headless=true"
On Linux Server release 6.2 (Santiago) , you just need to specify below command.
export CATALINA_OPTS="-DJENKINS_HOME=/opt/itmsetup/apache-tomcat-6.0.37/jenkins -Xmx750m -Djava.awt.headless=true"
this has solved my problem.
By adding CATALINA_OPTS="-Djava.awt.headless=true"
in setclasspath.sh
file of tomcat/bin
directory solved the problem.
pacman -S ttf-dejavu
fixed it for my Archlinux box
Installing openjdk-7-jre-headless
and ttf-dejavu
made the difference for me on Ubuntu 12.04 LTC (Precise). The fonts are referenced by the font setup of the Java installation and the OpenJDK 7 package depends on libfontconfig1
and will thus actually use the fonts.
I'm using Jenkins from http://pkg.jenkins-ci.org/debian/ and by default you will get openjdk-6-jre-headless
since the jenkins
package depends on default-jre-headless
, which in turn pulls in openjdk-6-jre-headless
.
You can swap the packages using
$ aptitude install openjdk-7-jre-headless
$ aptitude remove default-jre-headless openjdk-6-jre-headless