是classpath的问题,可以通过修改jbuilder和weblogic的设置来解决

解决方案 »

  1.   

    TO littlecong(虫子)
    怎么配置能否略说一二?
      

  2.   

    TO: wjmmml(笑着悲伤)
    代码如下:
    void jButton1_actionPerformed(ActionEvent e) {
        try
        {
        Class .forName("weblogic.jdbc.mssqlserver4.Driver");
        Connection con = DriverManager.getConnection("jdbc:weblogic:mssqlserver4:northwind@localhost","sa","");
        Statement stmt = con.createStatement();
        ResultSet rs = stmt.executeQuery("select * from employees");
        String line = "";
        while(rs.next())
          line = line + rs.getString("title") + "\n";
        this.jTextArea1.setText(line);
        con.close();
        }
        catch(SQLException EE)
        {
          this.jTextArea1.setText("error:"  + EE.getMessage());
        }
      }
      

  3.   

    将catch(SQLException EE)换成catch(Exception EE)试试看
      

  4.   

    To: study_body(为什么总是长不大) 
    改了,可是出现了以下错误.
    error:java.sql.SQLException: $$$$$$$$$$$$$$$$ License Exception $$$$$$$$$$$$$$$$
    Missing license file for: WebLogic Server 6.1
    $$$$$$$$$$$$$$$$ License Exception $$$$$$$$$$$$$$$$