The database server needs to be started before you can connect to it. The details depend on your database.
With the Derby database, follow these steps:
1. Open a command shell and change to a directory that will hold the database files.
2. Locate the file
derbyrun.jar. With some versions of the JDK, it is contained in the jdk
/db/lib directory, with others in a separate JavaDB installation directory. We will denote the directory containing
lib/derbyrun.jar with derby.
3. Run the command
java -jar derby/lib/derbyrun.jar server start
4. Double-check that the database is working correctly. Create a file
ij.properties that contains these lines:
ij.driver=org.apache.derby.jdbc.ClientDriver ij.protocol=jdbc:derby://localhost:1527/ ...