Before... (question deleted)
I'm trying to make a runnable jar from a Swing project.
I add some images in /img folder. Previous version didn't have it and runnable jar was good through export in Eclipse.
Now I guess something is going wrong. In runnable jar I added at same level of main package and META-INF folder, this img folder but it seems GUI does not appear.
Some process before building GUI went good so main class seems ok.
Any suggestion!?
Thanks.
Comments :
Run it on the command line and post the error you get. – Kevin
Any suggestion!?. Yes. post the structure of the jar file, the code which fails, and the stack trace of the exception you get. Otherwise, I don't see how we could help you. – JB Nizet
Did you plop some images into a path the classloader can see? – Perception
After....
So I found the problem, still not the solution:
As I said, I manually put /img inside jar as you can see by first screenshot:
http://img94.imageshack.us/img94/1691/screenshot021ep.jpg
But nothing happens, now I put /img outside jar and GUI starts:
http://img21.imageshack.us/img21/1551/screenshot022jj.jpg
So, how can I package /img folder or icons for my app?
Thanks.
PS: cmd line didn't print anything, the app starts and does some things right except for GUI building.
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)