相关疑难解决方法(0)

没有为jdbc找到合适的驱动程序:postgresql://192.168.1.8:5432/NexentaSearch

我写了以下java程序

import java.io.*;
import java.util.*;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.logging.Level;
import java.util.*;

public class Sample {
    public static void main (String[] args) throws IOException  {
                    int CountComputers;
            FileInputStream fstream = new FileInputStream(
                    "/export/hadoop-1.0.1/bin/countcomputers.txt");
            BufferedReader br = new BufferedReader(new InputStreamReader(fstream));
            String result=br.readLine();
            CountComputers=Integer.parseInt(result);
            input.close();
            fstream.close();
            Connection con = null;
            Statement st = null;
                ResultSet rs = null;    
               String url = "jdbc:postgresql://192.168.1.8:5432/NexentaSearch";
                String user = "postgres";
                String password = "valter89";
            ArrayList<String> paths = new ArrayList<String>(); …
Run Code Online (Sandbox Code Playgroud)

java linux postgresql jdbc driver

12
推荐指数
1
解决办法
3万
查看次数

标签 统计

driver ×1

java ×1

jdbc ×1

linux ×1

postgresql ×1