Code:
jbdc:mysql://localhost/New
This is a JDBC connection string, not a directory.
The string looks right, assuming that you are using MySQL, and "New" is the name of the database that you are connecting to.
First make sure that the MySQL server is running on the local machine, and that you have created the "New" database; you might try connecting with the mysql command-line. It might well be that MySQL has downcased the name to "new", for example.
This will show you the currently defined databases, as MySQL sees them:
Code:
echo "show databases;" | mysql -u username -p
You don't have to use MySQL as a database back-end; managed databases are very powerful but do involve setting quite a lot up. You might try using a JDBC provider that doesn't require a full managed database service to be running, such as hypersonic (
http://www.hsqldb.org/), just to verify that there isn't anything wrong with your Java code, before going back and fixing the database connection.