View Macros (viewppt, viewpdf, etc.) do not display correctly in 64-bit Linux
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.
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
Problem
Page with view macros do not display correctly or pages do no render at all. The following appears in the atlassian-confluence
.log
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
orviewxls
.
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.
Resolution
Install the Oracle 64 bit Java version for your operating system.