There is a project that works with the database. I create a jar file for this project, but there is no interaction with the database, I need to backup the database and put it in the project folder, how is it done at all? Java FX application, MySQL database

  • too lengthy question and he is not alone .. it is not clear what it means there is no interaction? for everything to work, there must be the correct connection settings to the database, the project jar needs to know where the driver to the database is located, that is, either the path is specified in the classpath when the application is started, or the relative path to the driver is specified in the manifest (relative to the location of the project), there is Another option is to add the jar driver to the database in the project itself, and finally, the correct way is where backup is done - keekkenen
  • @keekkenen, the question is how to generate a ready-made application that has a database, so that this application works accordingly without the development environment and interacts with the database - bsuart
  • if there is an application that works in the IDE, then it remains to pack it in jar and when starting, specify the path to the base driver - keekkenen

0