tools-->configure Libraries-->new

解决方案 »

  1.   

    在JB中,针对数据库驱动的使用分两种:
    1.代码中使用。直接把数据库驱动加载到libraries,然后Class.forName("oracle.jdbc.driver.OracleDriver").newInstance(); Connection conn= DriverManager.getConnection(xx); 就可以了。2.JB工具使用。如:配置Database Pilot,那就搜索本小论坛,有很多关于这方面的已经解决了的贴子。
      

  2.   

    在jb中,到帮助里边的index项下面输入jdbc driver,有add to jbuilder一项,会详细的告诉你如何配置jdbc的。
      

  3.   

    我用的是 盗板jbx,没有帮助文档?
    咋办呢?
    to  ---singlebigstone(一道烟)
    你能不能说说呀?
      

  4.   

    上午我在一个贴子上刚刚贴过,我用的是jbuilder9,不过我估计是大同小异的了,文档如下:
    Adding a JDBC driver to JBuilder After installing your JDBC driver following the manufacturer's instructions, use the steps below to set it up for use with JBuilder. 
    Note: Uninstalled drivers are red on the Drivers list in the Connection Property dialog box and cannot be selected for use in JBuilder. You must install them according to the manufacturer first before setting them up in JBuilder. Creating the .library and .config files There are three steps to adding a database driver to JBuilder:    Creating a library file which contains the driver's classes, typically a JAR file, and any       other auxiliary files such as documentation and source. 
       Deriving a .config file from the library file which JBuilder adds to its classpath at start-     up. 
       Adding the new library to your project, or to the Default project if you want it available       for all new projects. The first two steps can be accomplished in one dialog box: 
        1.Open JBuilder and choose Tools|Enterprise Setup. 
        2.Click the Database Drivers tab in the Enterprise Setup dialog box. The Database Drivers tab displays .config files for all the currently defined database drivers. 
        3.Click Add to add a new driver, then New to create a new library file for the driver. The library file is used to add the driver to the required libraries list for projects. Note: You can also create a new library under Tools|Configure Libraries, but since you would then have to use Enterprise Setup to derive the .config file, it is simpler to do it all here. 
        
        4.Type a name and select a location for the new file in the Create New Library dialog box.       5.Click Add, and browse to the location of the driver. You can select the directory containing the driver and all it's support files, or you can select just the archive file for the driver. Either will work. JBuilder will extract the information it needs.
        6. Click OK to close the file browser. This displays the new library at the bottom of the library list and selects it. 
        7.Click OK. JBuilder creates a new .library file in the JBuilder /lib directory with the name you specified (for example, InterClient.library). It also returns you to the Database Drivers page which displays the name of the corresponding .config file in the list which will be derived from the library file (for example, InterClient.config). 
        8.Select the new .config file in the database driver list and click OK. This places the .config file in the JBuilder /lib/ext directory. 
        9.Close and restart JBuilder so the changes to the database drivers will take effect, and the new driver will be put on the JBuilder classpath. 
        Important: If you make changes to the .library file after the .config file has been derived, you must re-generate the .config file using Enterprise Setup, then restart JBuilder.     
        Adding the JDBC driver to projects 
        
        Projects run from within JBuilder use only the classpath defined for that project. Therefore, to make sure the JDBC driver is available for all new projects that will need it, define the library and add it to your default list of required libraries. This is done from within JBuilder using the following steps: 
        1.Start JBuilder and close any open projects.
        2.Choose Project|Default Project Properties.
        3.Select the Required Libraries tab on the Paths page, and click Add.
        4.Select the new JDBC driver from the library list, and click OK.
        5.Click OK to close the Default Project Properties dialog box.
        
        Note: You can also add the JDBC driver to an existing project. Just open the project, then choose Project|Project Properties and use the same process as above. Now JBuilder and the new JDBC driver are set up to work together. The next step is to create or open a project that uses this driver, add a Database component to it, and set its connection property so it can use that driver to access the data. For an example of how to do this, see "Connecting to a database using InterClient" in the Developing Database Applications.