Jump to content
We've recently updated our Privacy Statement, available here ×
  • java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment


    ghudson_1
    • Product: JasperReports® Server

    Issue Description

    After deployment, in a linux-based OS, running the first request for JRS elicits an error: java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment.

     

    Resolution

    Ensure you are setting the JVM argument -Djava.awt.headless=true, for example in Linux, in a setenv.sh of Tomcat use:

    export JAVA_OPTS="-Djava.awt.headless=true"

    Ref. Case 01882734


    User Feedback

    Recommended Comments



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...