0
I am working on two apps here in the company that are giving me a certain headache for a reason that the solution should be simple but I am not able to locate the error, the two applications work normally within the eclipse, more when the . JAR and run the programs outside the eclipse it generates an error referring to the database.
The funniest thing is that one of the programs gives the same error but for the Oracle 11g database drive the other works Oracle 11g and gives problem in uncanaccess drive.
What can it be?
Problem was solved through the Denis comment, it was necessary to add the below statement in the code;
Class.forName("net.ucanaccess.jdbc.UcanaccessDriver");
Class.forName ("oracle.jdbc.OracleDriver");
http://answall.com/questions/20722/no-suitable-driver-found-em-conex%C3%A3o-de-database-in-java, check this case, also make sure the driver is inside the jar
– Denis Rudnei de Souza
Friend solved the two problems, thank you, updated the question.
– Matheus Arruda
I’ll post an answer so you know the question has been answered
– Denis Rudnei de Souza