
`print("try { con = DriverManager.getConnection("jdbc:sqlite:db/Freepark.sqlite"); } catch (SQLException e) { // TODO Auto-generated catch block System.out.println("error al buscar la base de datos"); }");`
I am trying to do my first querys on an SQL database but i am having problems connecting to it, I think the problem is the URL for sure, the proyect name is BaseTest and inside proyect folder I have a subfolder called db and inside it it's Freepark.sqlite.When I run the proyect the println message appears so I know that the problem is the url. Things like class.forName and so are already done above this code sample.

you just create the object in your java java file like DataBase db = new DataBase();
and you can use database like db. delete All();
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.