• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Runable JAR file not working properly

 
Paras Ahuja
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,
I have made a Java project using Swing and JDBC. Now to make it run on another PC, i make a runnable JAR file of the project and simply run it on the PC.
The problem is it works fine ont the PC for some time and then suddenly stops working. When i restart the application, it again works fine.
Any idea why this error is occuring?
Please help...
Thanks in advance
 
Rob Spoor
Sheriff
Pie
Posts: 20610
63
Chrome Eclipse IDE Java Windows
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Run the JAR file from the command line, using java -jar <jarfile>. My guess is that there is an exception that you don't see when you start the program by double clicking the JAR file.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic