File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes Exception in thread Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError" Watch "Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError" New topic

Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError

Rove Park

Joined: Jan 07, 2012
Posts: 2
Brief background with the program:

It's a stand-alone program that uses Swing as its GUI. It connects to server via FTPClient. It downloads certain file, update the file, then upload the file to server.

The scenario is this:

1. I compiled the project using Eclipse. And it runs smoothly - everything is working as it is expected.
2. I exported the project/program into a runnable jar using Eclipse.
a. I run the jar file. It runs smoothly. However, when I checked the server, the file didn't updated. It seems like the program doesn't connect to server.
b. Other people tried running the jar file in their desktops using cmd (java -jar name.jar). However, once they have clicked the Submit button, an error showed in the cmd. The error is as follows:

Anyone familiar with the error or issue? Any help is very appreciated.
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 46437
We’ld need to see the code. Especially your initalisers.
Ranganathan Kaliyur Mannar

Joined: Oct 16, 2003
Posts: 1101

Rove Park wrote:

this indicates you have not included a bundle file which might be the cause of the issue.

I agree. Here's the link:
subject: Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError
jQuery in Action, 3rd edition