hi jeanne,
this is the code i am using to connect to the database. the error i get using the code is because of the getConnection statement because, i donot have the maxdb database instantiated and there is no database named whistleblower in it. i would like to know how to instantiate maxdb database and create tables in it. i have installed the maxdb database from mysql.
thanks
satish
import java.sql.*;
public class TestClass2 {
public static void main(
String [] args)
{
Connection con= null;
Statement stmt = null;
ResultSet rs = null;
ResultSet rs1 = null;
String username;
String password;
try
{
System.out.println("hi");
Class.forName("com.sap.dbtech.jdbc.DriverSapDB");
System.out.println("hello");
con =
DriverManager.getConnection("jdbc:sapdb://localhost/whistleblower");
}
catch(Exception e)
{
System.out.println(" hi " + e.getMessage());
}
}
}