1

私は、mysql データベースからテーブルにアクセスする必要があるプロジェクトに取り組んでいます。しかし、Eclipseで次の例外が発生し続けます。

java.lang.classnotfoundexception com.mysql.jdbc.driver

をダウンロードしmysql-connector-java-5.1.23、プロジェクトの lib ファイルに jar ファイルを配置しようとしましたが、動作しなかったため、Apache の lib に配置しました..しかし、同じ問題が再び発生しました..環境クラスパス変数をポイントするように設定しようとしました..しかし、jar fileそれでも機能しませんでした..

Eclipse ジュノと MySQL Server 5.0 を apache tomcat 7.0 で使用しています。

助けてください!

4

3 に答える 3

1

これを試して

プロジェクトを右クリック

-->buildpath
 -->configure build path
-->add external jar files
and then select your jar file

プロジェクトのビルド パスに追加する必要があります。

于 2013-02-28T12:03:31.633 に答える
0

If you are creating JPA project then you have to add the .jar files.

Right click on project->buildpath->configure build path. In that click the "Libraries" on the top. Now click the Add External Jars and browse the jar u downloaded and add.

Hope it will work.

于 2013-02-28T12:08:59.790 に答える
0

プロジェクトを右クリックして [プロパティ] を選択し、[Java ビルド パス] を選択して、ファイルを外部 JAR として追加します。

于 2013-02-28T12:10:06.390 に答える