Reputation: 37
i am trying to access database with DataSource , for configuring datasource i need to import com.mysql.jdbc.jdbc2.optional.MysqlDataSource
but the problem is that Netbeans doesn't recognize it , saying that package doesn't exist.
(i installed java jdk v.8 , and i am using Netbeans IDE v8.0.2)
Upvotes: 4
Views: 4730
Reputation: 1892
Download MySql JDBC Jar file from here and follow the steps below.
Here are screenshots for you.
com.mysql.jdbc.jdbc2.optional.MysqlDataSource
. Done. Hope it helps.
Upvotes: 6