Menu

DB Driver classpath

Help
2002-08-23
2002-11-14
  • Michael Nestler

    Michael Nestler - 2002-08-23

    Hello,

    I just tried the plugin - it works fine, but I am not able to get my DB driver class into the classpath. So when I try to create a new datasource I always get an error.

    I already tried to put the driver jar (mysql) in IDEA_HOM/lib, or to put the jar into IDEA_HOME/plugins - it did not work.

    What do I have to do?

    Thanks in advance,
    Michael

     
    • James Birchfield

      Place it in your IDEA_HOME/lib, and adjust the idea.bat or idea.sh and add it to your CLASPATH settings in it.  Be careful not to cut-and-paste the last CLASSPATH enty as it points inside your JAVA_HOME directoy....a mistake several people imcliuding myself have made.

      Jim

       
      • Michael Nestler

        Michael Nestler - 2002-08-24

        Thanks for the help. Of course I made the mistake that you described :-)

        Now the plugin seems to be able to connect to the datasource, but it doesn't show any tables.

        Here is the output:

        SQLPlugin.readExternal
        found dataSource = ejb
        Adding datasource: ejb
        net.plugin.sql.SQLPlugin.initComponent
        net.plugin.sql.SQLPlugin.projectOpened
        net.plugin.sql.SQLPlugin.initToolWindow
        SQLPlugin.writeExternal
        writing dataSource = ejb
        SQLDataTree.updateTableNode
        SQLDataTree.updateTableNode
        SQLPlugin.writeExternal
        writing dataSource = ejb
        ==============================

        Michael

         
    • Justin Haddad

      Justin Haddad - 2002-11-14

      Can someone tell me how to add this jar to my classpath in the .bat or .sh startup script when all I have in my bin directory is an .exe???

       

Log in to post a comment.

MongoDB Logo MongoDB