No suitable driver found for jdbc:postgresql://192.168.1.8:5432/NexentaSearch

后端 未结 3 1167
臣服心动
臣服心动 2020-12-17 17:08

I wrote following the java program

import java.io.*;
import java.util.*;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet         


        
3条回答
  •  生来不讨喜
    2020-12-17 17:27

    Just use the jar command to extract the files your application needs to make the connection with the database server. e.g. jar -xf jdbc_file. Compile it with the javac -cp . and run it with the java -cp .

    And that's it. It will work.

提交回复
热议问题