In Netbeans I’ve selected the ‘build and clean’ option on my project, however if I move the .jar file from the /dist folder, I get this error:
“Error: not suitable driver found for ‘my database url here'”
Now I know that the database connection works because when I run the project in netbeans I’m able to retrieve and input data into the database, if I leave the .jar file in the /dist folder it works with no problems. Is there anyway I can include drivers when building the project?
Feel free to tell me if this makes no sense and I’ll try my best to elaborate.
Any help is greatly appreciated.
Update
The problem here is your netbeans doesn’t include required drived in build instead it is referring it from lib dir in dist
to kill this
goto netbeans project > build.xml
before
</project>add thisNote: quartz-1.5.2.jar will be referred by your project file.reference.quartz-1.5.2.jar
You can get such pointers from your
project.propertiesfile try to find jdbc jar’s pointer and all required and add then this way it will work.clean and build and run it from anywhere. it will include external libraries into build