|
|
|
помогите подключиться к IB
|
|||
|---|---|---|---|
|
#18+
В общем хочу подключиться к IB Поставил InterClient В эклипсе создл проект и пишу: mport interbase.interclient.*; import java.sql.*; public class TestDB { public static void main(String[] args) { java.sql.Connection Conn = null; //Class.forName(); java.lang.Class.forName("interbase.interclient.Driver"); String DatabaseURL = new String( "jdbc:interbase://localhost/C:/Temp/ot-ent.gdb"); Conn = DriverManager.getConnection(DatabaseURL, "sysdba", "masterkey"); java.sql.Statement stMain = null; stMain = Conn.createStatement(); java.sql.ResultSet resultset = stMain .executeQuery("SELECT * FROM Analog"); } Запускаю и выдает следующее Exception in thread "main" java.lang.Error: Unresolved compilation problems: Unhandled exception type ClassNotFoundException Unhandled exception type SQLException Unhandled exception type SQLException Unhandled exception type SQLException at MyNew.TestDB.main(TestDB.java:14) Как с этим бороться InterServer запущен, все пакеты вроде находит ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 13.04.2006, 01:10 |
|
||
|
помогите подключиться к IB
|
|||
|---|---|---|---|
|
#18+
Попробуй отредактировать переменную CLASSPATH. Например так: SET CLASSPATH=C:\InterBase\InterClient.jar;. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 13.04.2006, 01:18 |
|
||
|
|

start [/forum/topic.php?fid=59&fpage=735&tid=2149617]: |
0ms |
get settings: |
9ms |
get forum list: |
12ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
63ms |
get topic data: |
9ms |
get forum data: |
2ms |
get page messages: |
32ms |
get tp. blocked users: |
2ms |
| others: | 244ms |
| total: | 379ms |

| 0 / 0 |
