how to to connect and use JDBCUtil
<p>hi
i want to use Class <code>JDBCUtil</code> in java language and eclips workspace and I have the below code:</p>

<pre><code>import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class JDBCUtil {

static final String CONN_STR = "jdbc:hsqldb:hsql://localhost/";

static {
    try {
        Class.forName("org.hsqldb.jdbcDriver");
    } catch (ClassNotFoundException ex) {
        System.err.println("Unable to load HSQL JDBC driver");
    }
}

public static Connection getConnection() throws SQLException {
    return DriverManager.getConnection(CONN_STR);
}
</code></pre>

<p>}</p>

<p>but when I run it, I get the below <code>Exception</code>:</p>

<pre><code>Unable to load HSQL JDBC driver
Exception in thread "main" java.lang.NullPointerException
    at domain.EnrollCtrl.getCurrentOfferings(EnrollCtrl.java:78)
    at ui.UI.main(UI.java:28)
</code></pre>

<p>in addition there is UI and EnrollCtrl and another file in this project but the error is in this path. 
how can i fix this error? should I do sth for connectin to  <code>jdbc:hsqldb:hsql://localhost/</code>?
thank U </p>
