영어 해석이 잘 안 되어서...

세벌의 이미지

From http://dev.mysql.com/doc/connector/j/en/index.html#id2800948

Quote:
Once you have un-archived the distribution archive, you can install the driver in one of two ways: Either copy the "com" and "org" subdirectories and all of their contents to anywhere you like, and put the directory holding the "com" and "org" subdirectories in your classpath, or put mysql-connector-java-[version]-bin.jar in your classpath, either by adding the FULL path to it to your CLASSPATH enviornment variable, or by copying the .jar file to $JAVA_HOME/jre/lib/ext. If you are going to use the driver with the JDBC DriverManager, you would use "com.mysql.jdbc.Driver" as the class that implements java.sql.Driver.

... 둘 중의 한 방법으로 드라이버를 설치할 수 있다.
까지는 잘 했는데...
둘 중의 한 방법이라고 하니 그 다음에 or가 하나만 나올 줄 알았는데, 한 개가 아니고 두 개가 나오네요. 아~ 나의 영어실력이 들통나는 순간이군요. 영어 잘 하시는 분 저 좀 도와 주세요.
atie의 이미지

두번째의 OR는 mysql-connector-java-[version]-bin.jar 파일을 클래스 패스에 넣기 위해 풀패스를 쓰거나 아니면, 그 jar 파일을 $JAVA_HOME/jre/lib/ext에 복사하란 뜻... mysql-connector-java-[version]-bin.jar를 $JAVA_HOME/jre/lib/ext에 복사하는 것이 간편하겠네요.

----
I paint objects as I think them, not as I see them.
atie's minipage

fender의 이미지

탐캣에서 사용하실 거라면 commons/lib에 넣는 것이 가장 바람직한 방법입니다. 혹은 특정 웹어플리케이션에서만 필요한 경우 해당 어플리케이션의 WEB-INF/lib에 넣으면 됩니다.

lib/ext의 경우 원칙적으로는 extension들을 위한 디렉토리입니다. CLASSPATH 환경변수를 사용할 수 있다고 되어 있지만 이는 가능한 무조건적으로 피해야 될 방법입니다.

참고로 커넥션 관련은 commons-dbcp 등을 이용하면 탐캣 등에서 매우 쉽게 연결 설정을 할 수 있습니다.

그럼~

----------------------------
[서명] 그놈 한국 사용자 모임 - 그놈에 대한 모든 것! - 게시판, IRC, 위키, 갤러리 등등...

atie의 이미지

sebul님이 최근에 tomcat 관련해서 wiki 정리하신 것을 고려한다면, fender님의 답변이 정확합니다. :roll:

----
I paint objects as I think them, not as I see them.
atie's minipage