Reputation: 3
I am recently created a java application that runs completely fine in NetBeans IDE, but if i run the .jar file of the application it does not work properly. Here i am providing two snapshots of my program execution in NetBeans:
Now if i run the .jar file outside the IDE, the program don't do anything after the first one of the above pictures. I mean it does not go forward after the button click event. I don't know what to do now. I also converted the .jar file to .exe but that did not work. Please help.
Upvotes: 0
Views: 1612
Reputation: 1982
Log all your steps in code. Something like
public void buttonClickMethod() {
System.out.println("Log in button is clicked. Starting verification process");
startVerification();
....
}
After that run you jar from CMD like:
java -jar fileName.jar
And you will see all steps in your CMD screen. With exceptions and other things. It will help you to diagnose the problem.
Upvotes: 1
Reputation: 84
try to clean and build project then run your jar file ,maybe work correctly
Upvotes: 0