报错
java.lang.NoClassDefFoundError: business\DBConnectionManager/java
下面是我的DBConnectionManager找不出来问题啊!
package org.pan.util;
import java.sql.*;
public class DBConnectionManager {
private String driverName = "com.mysql.jdbc.Driver ";
private String url = "jdbc:mysql://localhost:3306/business?useUnicode=true&characterEncoding=GBK ";
private String user = "root ";
private String password = " ";
public void setDriverName(String newDriverName) {
driverName = newDriverName;
}
public String getDriverName() {
return driverName;
}
public void setUrl(String newUrl) {
url = newUrl;
}
public String getUrl() {
return url;
}
public void setUser(String newUser) {
user = newUser;
}
public String getUser() {
return user;
}
public void setPassword(String newPassword) {
password = newPassword;
}
public String getPassword() {
return password;
}
public Connection getConnection() {
try {
Class.forName(driverName);
return DriverManager.getConnection(url, user, password);
}
catch (Exception e) {
e.printStackTrace();
return null;
}
}
public static void main