Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
jdbc から乱数 (ID) と名前 name を作成するプログラムを作成します。しかし、jar ファイルをエクスポートすると、データベースが機能しません。
jdbc ファイルと jar ファイルで構成される完全なファイルまたはドキュメントを作成するにはどうすればよいですか
もっと明確に言うと、JDBC ドライバーを実行可能な JAR ファイルに含めますか? その場合、Netbeans や Eclipse などの IDE を使用してこれを実現できます。どちらも、必要なライブラリが含まれている JAR ファイルをエクスポートできます。
Netbeans の場合: - プロジェクト フォルダーを右クリックし、プロパティに移動します - [Building] -> [encapsulation] を展開します - [依存ライブラリのコピー] がマークされていることを確認します