Connect to Open Office odb file using jdbc program
问题 I had written following code to connect to OpenOffice db . String db = "C:\\Documents and Settings\\hkonakanchi\\Desktop\\Test.odb"; Class.forName("org.hsqldb.jdbcDriver"); Connection con = DriverManager.getConnection("jdbc:hsqldb:file:" + db,"sa",""); Statement statement = con.createStatement(); ResultSet rs = statement.executeQuery("SELECT * FROM Emp"); while (rs.next()) { System.out.print("ID: " + rs.getString("ID")); System.out.print(" first name: " + rs.getString("firstname")); System