Eclipse uses Java to connect MySQL reports

below. If you want to connect MySQL,build path with java under eclipse, what is the problem with ClassNotFoudException?

`package kikikaka;

public class Kika {

public static void main(String[] args) {
 try{Class.forName("com.mysql.jdbc.Driver");
 }catch(ClassNotFoundException e) {
        System.out.println("Driver err");
    }

}
} `

clipboard.png

Jun.17,2021

successfully connected to QQ after receiving netbeans

Menu