J
J
Javist20212021-08-07 11:27:57
Java
Javist2021, 2021-08-07 11:27:57

How to distribute java program along with database?

I am writing a program in which users will store their data. I use a database to store data. How do I put a server (local) in the Java project directory so that the server starts up without being installed on the PC?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
O
Orkhan, 2021-08-08
@Javist2021

Good afternoon.
You can use h2 database. It can be embedded as well as saved to the file system. You can also look towards sqlite. Or you can use postgres embedded.
For the convenience of working with the selected database, use ORM (hibernate, ormlite, etc.)

D
Developer, 2021-08-07
@samodum

SQL is not a "BD" but a language. DataBase is MS SQL Server, MySql, PostgreSql and more.
Yes, you can do it, but no one does it, because the collective farm

M
MechanicZelenyy, 2021-08-07
@MechanicZelenyy

For java, there is an embedded H2 database

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question