Hemant
Hemant

Reputation: 57

Distribution of Executable jar file in netbeans

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

Answers (2)

Hemant
Hemant

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

Arpit Porwal
Arpit Porwal

Reputation: 293

In dist folder, you will find three things :

  1. the .jar file of your project
  2. a lib folder
  3. Readme.txt

Make 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

Related Questions