Class.forName(“org.postgresql.Driver”) error

前端 未结 3 1017
青春惊慌失措
青春惊慌失措 2021-01-21 22:19

I have simple class. Then I try to compile and run it I see ClassNotFoundException.

import java.sql.*;

public class DBProcessor{

private static String serverAd         


        
3条回答
  •  感动是毒
    2021-01-21 22:49

    You need to link the driver to your IDE. if you're using Netbeans, right click on Libraries, Add jar/folder then browse to the driver.

提交回复
热议问题