| Author |
Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError
|
Rove Park
Greenhorn
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
Sheriff
Joined: Oct 13, 2005
Posts: 32833
|
|
|
We’ld need to see the code. Especially your initalisers.
|
 |
Ranganathan Kaliyur Mannar
Bartender
Joined: Oct 16, 2003
Posts: 948
|
|
Rove Park wrote:
this indicates you have not included a bundle file which might be the cause of the issue.
|
Ranga.
SCJP 1.4, OCMJEA/SCEA 5.0.
|
 |
 |
|
|
subject: Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError
|
|
|