Yutzy,
Should have work, try this:
-----------
import java.sql.*;
class testing{
String driverName = "org.enhydra.instantdb.jdbc.idbDriver";
String connectionURL = "jdbc:idb:C:/Inetpub/wwwroot/HMG/Database/HMG.prp";
testing(){
try {
Class.forName(driverName);
Connection con = DriverManager.getConnection(connectionURL);
con.close();
} catch (Exception e) {
e.printStackTrace();
}
}
public static void main(String[] args){
new testing();
}
}
--------------
Martin
"D.Yutzy" <dyutzy@copper.net> on 27-07-2000 22:38:11
Please respond to instantDB@enhydra.org
To: instantDB@enhydra.org
cc: (bcc: Martin Husted/Electrolux Nyborg A S/Denmark/Electrolux Group)
Subject: Re: InstantDB: connection problems
Mine compiles just fine, but when I try to connect, I get a "null"
exception, meaning, it couldnt' create the instance of the connection.
Here is my code:
..
..
-----------------------------------------------------------------------------
To unsubscribe from this mailing list, send email to majordomo@enhydra.org
with the text "unsubscribe instantdb" in the body of the email.
If you have other questions regarding this mailing list, send email to
the list admin at owner-instantdb@enhydra.org.
|