View Macros (viewppt, viewpdf, etc.) do not display correctly in 64-bit Linux

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

Problem

Page with view macros do not display correctly or pages do no render at all. The following appears in the atlassian-confluence.log

atlassian-confluence.log

1 2 3 4 5 2015-12-17 20:52:50,579 ERROR [localhost-startStop-1] [atlassian.confluence.security.DefaultCaptchaManager] afterPropertiesSet Could not initialise CAPTCHA service. The most likely reason for this is that Java's graphics subsystem is not properly configured. Try starting Confluence's JVM with the -Djava.awt.headless=true option. /opt/jdk1.8.0_65/jre/lib/i386/libfontmanager.so: libgcc_s.so.1: cannot open shared object file: No such file or directory java.lang.UnsatisfiedLinkError: /opt/jdk1.8.0_65/jre/lib/i386/libfontmanager.so: libgcc_s.so.1: cannot open shared object file: No such file or directory ... java.lang.RuntimeException: Could not initialize class sun.awt.X11FontManager

Diagnosis

Environment

  • The operating system is 64 bit linux

  • 32 bit Java is installed

  • Pages use viewppt, viewpdf, viewdoc or viewxls.

Cause

The 32 bit Java is looking for a 32 bit library (libgcc_s.so.1) that is not installed in the 64 bit operating system.

Solution

Resolution

Install the Oracle 64 bit Java version for your operating system.

Updated on April 2, 2025

Still need help?

The Atlassian Community is here for you.