We get it done! Thank you for help me.
My steps to get it done.
1 - Install the same version of openfire (like you said it)
2 - start openfire web configuration (login\password)
3 - Openfire and mariadb services stopped.
4 - transfer embedded.db from windows to Ubuntu by WINSCP.
5 - Grant permissions on openfire over files and folders (I don’t remember the folders and sub folders) this was very important!
6 - restart openfire and mariadb services and run web application.
If you want I can’t bring more information about the installation.