• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

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

Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Posts: 70234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We’ld need to see the code. Especially your initalisers.
Posts: 1104
Netbeans IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Rove Park wrote:

this indicates you have not included a bundle file which might be the cause of the issue.
You got style baby! More than this tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic