Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6369975
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:52:20+00:00 2026-05-25T00:52:20+00:00

I tried to run this very basic Swing program: http://download.oracle.com/javase/tutorial/uiswing/examples/start/HelloWorldSwingProject/src/start/HelloWorldSwing.java and got an error:

  • 0

I tried to run this very basic Swing program:
http://download.oracle.com/javase/tutorial/uiswing/examples/start/HelloWorldSwingProject/src/start/HelloWorldSwing.java
and got an error:

Exception in thread "main" java.lang.ExceptionInInitializerError
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:186)
    at java.awt.Toolkit$2.run(Toolkit.java:849)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:841)
    at java.awt.Toolkit.getEventQueue(Toolkit.java:1698)
    at java.awt.EventQueue.invokeLater(EventQueue.java:1002)
    at javax.swing.SwingUtilities.invokeLater(SwingUtilities.java:1292)
    at ac.biu.nlp.nlp.engineml.rteflow.macro.gui.CustomProofEngine.main(CustomProofEngine.java:261)
Caused by: java.lang.NullPointerException
    at sun.awt.FontConfiguration.getVersion(FontConfiguration.java:1191)
    at sun.awt.FontConfiguration.readFontConfigFile(FontConfiguration.java:164)
    at sun.awt.FontConfiguration.<init>(FontConfiguration.java:89)
    at sun.awt.motif.MFontConfiguration.<init>(MFontConfiguration.java:50)
    at sun.awt.X11GraphicsEnvironment.createFontConfiguration(X11GraphicsEnvironment.java:942)
    at sun.java2d.SunGraphicsEnvironment$2.run(SunGraphicsEnvironment.java:247)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.java2d.SunGraphicsEnvironment.<init>(SunGraphicsEnvironment.java:163)
    at sun.awt.X11GraphicsEnvironment.<init>(X11GraphicsEnvironment.java:253)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
    at java.lang.Class.newInstance0(Class.java:372)
    at java.lang.Class.newInstance(Class.java:325)
    at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:82)
    at sun.awt.X11.XToolkit.<clinit>(XToolkit.java:112)
    ... 9 more

I get the error both when I run from Eclipse and when I run from the command line.

I use a standard installation of Java 6 on Ubuntu 10.04.

Do you have any idea how to solve this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T00:52:20+00:00Added an answer on May 25, 2026 at 12:52 am

    Reading the stack trace, it appears that the FontConfiguration is failing to execute, due to a NullPointerException.

    I believe this is a problem with the installation of Java. Try uninstalling and re-installing Java. I certainly can’t see any problem with the code itself. Although, the root of the stack trace show the exception started at line 261, in your main method…so if you are running the code in the example you linked to, something very odd is going on, because there is only a few dozen lines of code!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When I run this code the selected item is not visible. I've already tried
How do I run this command with subprocess? I tried: proc = subprocess.Popen( '''ECHO
Error I tried this page to run on local, it is running perfectly fine
I have tryed to run this code in my console: script/plugin install git://github.com/apotonick/cells.git ...but
Yes, I am having issues with this very basic (or so it seems) thing.
This is a very beginner question. I have tried to search for advice but
I'm Delphi programmer and very new to Cocoa. at first I tried this :
I know this is very basic but i am frustrated like anything.. i googled
I have a very basic python script that does HTTP connection. import socket def
Probably a very basic solution to this, but I can't seem to figure it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.