| JAR file behaves differently than in Eclipse [message #903782] |
Sat, 25 August 2012 18:22  |
David Tannen Messages: 48 Registered: August 2012 |
Member |
|
|
Hi,
First post here and a newbie to Java and Eclipse (long time programmer). I did some searching around the forum but didn't see anything like this.
Ok I have built a desktop application using Java and Eclipse. When I run it from inside of Eclipse it runs just fine. All of my GUI elements work and the application is great.
But after following the instructions I found How to create JAR file in Eclipse ("codejava.net/ides/eclipse/how-to-create-jar-file-in-eclipse") and tried to run my application the only thing that worked were the 'built in GUI' elements. The FileChooser worked and a message box when closing the application. But all of the GUI elements I put into my application failed.
The zip file I am posting has both the necessary XML input file and the JAR that was created.
Thank you in advance
Attachment: HCM.zip
(Size: 409.91KB, Downloaded 30 times)
David Tannen
[Updated on: Sat, 25 August 2012 18:23] Report message to a moderator
|
|
|
|
| Re: JAR file behaves differently than in Eclipse [message #903790 is a reply to message #903783] |
Sun, 26 August 2012 00:40   |
David Tannen Messages: 48 Registered: August 2012 |
Member |
|
|
Stephan,
Thank you for your answers.
Stephan Herrmann wrote on Sat, 25 August 2012 18:44Quick question: how do you manage your dependencies / libraries?
It looks funny that you include some src-zips of libraries, and then these don't seem to be complete.
Maybe you're just lacking those dependencies on the classpath when running outside Eclipse?
I have no idea how the src-zips of libraries got included. What should I do about that?
I think you are 100% correct on the dependencies not being part of my classpath. Here are the questions I have:
1. How do I figure out what library dependencies I need?
2. Do I create new classpath variables or do I put the libraries in the User Library?
Stephan Herrmann wrote on Sat, 25 August 2012 18:44And then, since you mastered to create the jar using Eclipse I don't think the remaining problems are genuine Eclipse issues.
Thank you in advance
David Tannen
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02510 seconds