I am trying to access a database using a DataSource, to configure the data source I need to import com.mysql.jdbc.jdbc2.optional.MysqlDataSource , but the problem is that Netbeans does not recognize it, stating that the package does not exist.
(I installed java jdk v.8 and I am using Netbeans IDE v8.0.2)
source share