I have this problem which is killing me.
I am trying to use the jar-package of HSQLDB to run a database for the first time with a application I am writing. What I have done is
1. I have download the HSQLDB-jar files
2. I have extract them to the same folder as my main-java-class.
3. I want to connect by writing
Connection c = DriverManager.getConnection("jdbc:hsqldb:file:testdb", "sa", "");
4. I have followed instructions exactly and I am importing
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.sql.Statement;
But Java doesn't recognize
DriverManager
Should I import the hsqldb too? How should I address them? Like
import hsqldb.*;
because the hsqldb folder's name is hsqldb and it is in the same folder as my main-class.
Anyone can help me out??? There are no good simple instructions out there. I promise I have been looking for 2 days now. THX