Reputation: 57
I have created a database desktop application using netbeans. Netbeans creates a jar file in the project folder. When I run it, it works fine.
The problem is when I take that jar file outside the project folder and then try to run it, it shows an exception of org.sqlite.jdbc
. This exception keeps on striking until I close the process using Windows task manager but it is not running.
Upvotes: 0
Views: 528
Reputation: 57
Thanks. I have found a solution here http://arunasujith.blogspot.in/2011/08/how-to-build-fat-jar-using-netbeans.html?m=1.
Upvotes: 0
Reputation: 293
In dist
folder, you will find three things :
.jar
file of your projectlib
folderMake sure that when you take your .jar
file outside the project folder, take the lib folder as well.
The lib folder contains all the libraries and jar files you've used in your project and are essential to make the jar file run. Hope it helps!! :)
Upvotes: 2