
Новые сообщения [новые:0]
Дайджест
Горячие темы
Избранное [новые:0]
Форумы
Пользователи
Статистика
Статистика нагрузки
Мод. лог
Поиск
|
|
13.04.2006, 01:10
|
|||
|---|---|---|---|
помогите подключиться к 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:18
|
|||
|---|---|---|---|
помогите подключиться к IB |
|||
|
#18+
Попробуй отредактировать переменную CLASSPATH. Например так: SET CLASSPATH=C:\InterBase\InterClient.jar;. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|

start [/forum/topic.php?fid=59&mobile=1&tid=2149617]: |
0ms |
get settings: |
8ms |
get forum list: |
20ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
71ms |
get topic data: |
13ms |
get forum data: |
3ms |
get page messages: |
50ms |
get tp. blocked users: |
2ms |
| others: | 213ms |
| total: | 388ms |

| 0 / 0 |
