Welcome to the Ranch
I shall move this discussion to our database forum, where I think it would fit better.
I think you ought to start running the database from its command line interface rather than from Java™, and work out how to connect to Java™ later. I suggest you find the
Java Tutorials, which I think is helpful about databases, and will probably tell you all you need.