• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Rove Park
Greenhorn
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.
 
Campbell Ritchie
Sheriff
Posts: 48652
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We’ld need to see the code. Especially your initalisers.
 
Ranganathan Kaliyur Mannar
Bartender
Posts: 1101
10
Java Netbeans IDE 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic