Log in

View Full Version : Problem with java


norah1990
Mar 14, 2016, 11:55 AM
I download an open source code for Hotel Reservation System
but I can't open it because error in connection with the database
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:htl");

}
catch(Exception e)
{
t1.setText("Error in Connection ");
}
}

CravenMorhead
Mar 15, 2016, 08:49 AM
Did you make sure that your database is setup the way the program wants it to be? Make sure it is setup?