java error (No suitable driver found)

后端 未结 4 814
醉梦人生
醉梦人生 2020-11-29 12:19
public class ReportView extends JFrame {

  Connection con=null;

  void showReport() throws SQLException, ClassNotFoundException, JRException {

    con=DriverManag         


        
4条回答
  •  爱一瞬间的悲伤
    2020-11-29 12:49

    1. You'll need to load the driver somewhere. Class.forName("org.postgresql.Driver");
    2. You'll need the postgresql driver .jar file in the classpath of your program.

提交回复
热议问题