Eclipse里運(yùn)行時(shí),將mysql-connector-java-x.x.x-bin.jar添加到外部JAR,具體操作是:在工程目錄右鍵->Build Path->Configure Build Path->Add External JARs
Linux平臺(tái)下塑崖,用JAR包運(yùn)行程序時(shí),將mysql-connector-java-x.x.x-bin.jar放到j(luò)ava安裝目錄下的jre\lib\ext
Eclipse里運(yùn)行時(shí),將mysql-connector-java-x.x.x-bin.jar添加到外部JAR,具體操作是:在工程目錄右鍵->Build Path->Configure Build Path->Add External JARs
Linux平臺(tái)下塑崖,用JAR包運(yùn)行程序時(shí),將mysql-connector-java-x.x.x-bin.jar放到j(luò)ava安裝目錄下的jre\lib\ext