How to include sqlite db file into jar in netbeans?

Probably you need to point your app to include your app base directory in the classpath. The command to run your app should be something like.

Probably you need to point your app to include your app base directory in the classpath. The command to run your app should be something like: java -cp . YourAppMainClass the "-cp ." is the command option that tells java to include current directory in the classpath.

I have solved this problem. Thanks for your attention. – tukang-coding Aug 28 at 15:24.

Problem solved! I made a mistake in the way I execute the JAR file. Previously I run the JAR file by right click on it and open it with Java SE binary.

I need to do this because in my PC the default program to open JAR file was set to another software. It turned out that I have to set the default program to Java SE Binary and the double click the JAR file in order to run my application. Using this way I can run and access the sqlite db file without a problem.

I hope this can help others who may get the same problem as I had.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions