database.sarang.net
UserID
Passwd
Database
DBMS
MySQL
ㆍPostgreSQL
Firebird
Oracle
Informix
Sybase
MS-SQL
DB2
Cache
CUBRID
LDAP
ALTIBASE
Tibero
DB 문서들
스터디
Community
공지사항
자유게시판
구인|구직
DSN 갤러리
도움주신분들
Admin
운영게시판
최근게시물
PostgreSQL Q&A 166 게시물 읽기
No. 166
postgres 자바연결에 관하여...
작성자
김호동
작성일
1999-11-22 16:12
조회수
19,374

안녕하셨습니까?

 

포스트그레스용 jdbc를 찾아서 설치해준후 간단한 프로그램을 만들어서 컴파일해봤는데요.. 다음과 같이 에러가 나네요.. 소스상의 문제는 아닌듯 하구요... 왜냐면 예제에 나온것을 알맞게 수정해서요 게다가 라인도 얼마 안돼구요 몇번씩 살펴봤거든요... CLASSPATH도 지정해 주었는데 찾지를 못하는것 같으니..

혹 아시면 답을 좀. ^^;

 

 

다음이 에러메세지입니다.

first.java:19: Exception java.lang.ClassNotFoundException must be caught, or it

must be declared in the throws clause of this method.

Class.forName("postgresql.Driver");

^

first.java:21: Method getConnection(java.lang.String, java.lang.String, java.lan

g.String) not found in interface java.sql.Driver.

Connection db = Driver.getConnection("jdbc:postgresql://sosworld

.co.kr:5432/world","nobody","");

^

first.java:23: Exception java.sql.SQLException must be caught, or it must be dec

lared in the throws clause of this method.

Statement st = db.createStatement();

^

Note: first.java uses or overrides a deprecated API. Please consult the documen

tation for a better alternative.

3 errors, 1 warning

[Top]
No.
제목
작성자
작성일
조회
169몇 가지 궁금증들.......
김종혁
1999-11-23
18590
172┕>Re: 몇 가지 궁금증들.......
정재익
1999-11-23 21:07:26
19544
174 ┕>Re: Re: 몇 가지 궁금증들.......
김종혁
1999-11-23 23:28:42
19613
175  ┕>Re: Re: Re: 몇 가지 궁금증들.......
정재익
1999-11-23 23:48:10
19764
176   ┕>Re: Re: Re: Re: 몇 가지 궁금증들.......
김종혁
1999-11-24 00:32:07
19310
183┕>Re: 몇 가지 궁금증들.......
김철진
1999-11-24 21:32:46
19038
168select문에 관한질문
이미선
1999-11-23
17522
171┕>Re: select문에 관한질문
정재익
1999-11-23 21:05:21
18573
167포스트그래스의 성능에 관한 질문..?
최동욱
1999-11-23
17859
170┕>Re: 포스트그래스의 성능에 관한 질문..?
정재익
1999-11-23 21:01:45
19238
166postgres 자바연결에 관하여...
김호동
1999-11-22
19374
184┕>Re: postgres 자바연결에 관하여...
민성기
1999-11-25 10:59:49
20620
163빈 자리 찾는 방법?
최동욱
1999-11-19
16617
165┕>Re: 빈 자리 찾는 방법?
이정환
1999-11-22 14:04:29
18310
159UNION 문을 사용한 SELECT
안중혁
1999-11-17
16856
160┕>Re: UNION 문을 사용한 SELECT
정재익
1999-11-17 18:45:10
18181
180 ┕>Re: Re: UNION 문을 사용한 SELECT
민성기
1999-11-24 19:19:40
17544
158mod_auth_pgsql 이 안돼용
김현호
1999-11-17
16930
161┕>Re: mod_auth_pgsql 이 안돼용
정재익
1999-11-17 18:48:11
17708
162┕>Re: mod_auth_pgsql 이 안돼용
김종혁
1999-11-19 02:17:50
17957
164┕>이런 간단한 문제로...!! TT
김현호
1999-11-22 13:38:09
18218
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2024 DSN, All rights reserved.
작업시간: 0.030초, 이곳 서비스는
	PostgreSQL v16.2로 자료를 관리합니다