Click here to Skip to main content
15,897,273 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello everyone,

I have built an application in Eclipse IDE. Now I want to deploy the application, so people can install the software on their machines. I believe you do this by creating a .JAR file which contains your Java application code within it, like you would if you were compiling a window based program with .exe file.

I have gone through the steps using the Eclipse IDE Wizard,
File -> Export -> Java -> JAR file etc...

And it creates the .JAR file.

Now my application works by first displaying Screen A. This screen lets the users input some data. Once the user has inserted some data, then they click a button and Screen B appears. Screen B depends on the users data in order for it to run.

Now when you double click on the .JAR file created by using the wizard I mentioned above, Screen A displays, however when I click on the button Screen B doesn't display. Nothing happens. Now when I run the application uses the green play (run) button in the actual Eclipse IDE it works fine.

Can anyone help and tell me what I am doing wrong?
Thank-You.
Posted

Do you have any logging in your system?

Seems like the lifetime of your application is related to the lifetime of your first window. is that some kind of login screen?

You might need some application controlling classes above the GUI, so that the GUI is just part of the application and the shutdown of a window does not mean the end of the application.
 
Share this answer
 
Comments
Willtwinny 11-Jan-12 8:45am    
Not so much as a logging in system, but it's very similar. Basically it is entering some details such as XML file/database details etc. But I haven't even programmed the first window to close at the moment, just programmed it to load up the second window. This is why I don't really understand why it is not working.
Willtwinny 11-Jan-12 9:27am    
I think I know what the problem was.
I had external JAR files that where included within the project.
I decided to download the Fat Jar Eclipse Plug-In and it works now! (Oh and it's sooo much easier using that, than the wizard Eclipse brings you).

Thank-you for trying to help anyway :-)
I had external JAR files that where included within the project.
I decided to download the Fat Jar Eclipse Plug-In and it works now!
(The plug-in is sooo much easier to use than the wizard Eclipse brings you).

http://fjep.sourceforge.net/#inst[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900