How to create an executable file from java code when it has MySQL database connections?

I have created a java ant application and it has MySQL connections. I am required to convert it into an .exe file. I am not sure how exactly to integrate to the SQL server with exe file.

Do I need to integrate instead with h2 server?

A step by step guide would be helpful.