facebook

Cannot Connect to Sybase DB using Database Explorer

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #240100 Reply

    We are attempting to use the Database Explorer through Eclipse 3.1.0. We have a sybase database and cannot get a connection. The odd thing is that when we use another Eclipse Plug in ‘DB Sql Explorer’ we do not have this problem. It looks like it cannot find the jdbc2 driver which we have in the root of the eclipse directory… Anyone know why this is happening or where we need to put our driver? We are using the default Sybase Adaptive Server Enterprise form the Driver dropdown in the Database Profile setup.

    java.lang.ClassNotFoundException: com.sybase.jdbc2.jdbc.SybDriver
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at net.sourceforge.squirrel_sql.fw.util.MyURLClassLoader.findClass(MyURLClassLoader.java:113)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at net.sourceforge.squirrel_sql.fw.sql.SQLDriverManager.getConnection(SQLDriverManager.java:96)
    at com.genuitec.eclipse.sqlexplorer.actions.LoginProgress$Login.run(LoginProgress.java:43)
    at java.lang.Thread.run(Unknown Source)

    #240118 Reply

    Brian Fernandes
    Moderator

    Steve,

    Could you tell me when you see that exception? Do you see it when you’re trying to install the driver jars in the Drivers preference page or do you see it when you’re using the DB explorer to connect to your database?

    For the record, you need to go to the Drivers preference page (Window > Preferences > MyEclipse > Database Explorer > Drivers) then select your driver, edit, get to the Driver Libraries tab, press New and start adding the JAR files. If the sybase driver is distributed across several jar files, you would need to add them all here. The dialog automatically detects the drivers available and lists them out in the combo at the bottom of the page. There is no specific location required, your JAR files can be anywhere on your file system.

    Best,
    Brian.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Cannot Connect to Sybase DB using Database Explorer

You must be logged in to post in the forum log in