aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
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: 36452
    
  15
We’ld need to see the code. Especially your initalisers.
Ranganathan Kaliyur Mannar
Bartender

Joined: Oct 16, 2003
Posts: 1075
    
  10

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError
 
Similar Threads
null pointer
Populate Array of type Double from text file
Open office Integration in JavaSwing application gives an exception when a jar is created.
how to handle data gotten from CLOBs?
Persistence.xml file not wokring in JGrasp IDE