cloudscape

From: Rob (talon2lm_at_yahoo.com)
Date: 02/04/04

  • Next message: BlackHawke: "Execute Java in a new window"
    Date: Tue, 3 Feb 2004 22:53:15 -0700
    
    

    I'm a newbie in cloudscape (Java too) and I'm having a problem. I've
    followed the tutorial that comes with cloudscape to the letter. Everything
    worked as advertised up untill this program:

    /*
     * Licensed Materials - Property of IBM
     *
     * (C) Copyright IBM Corp. 2000, 2001
     * All Rights Reserved.
     */
    import java.sql.*;

    public class CreateWorldDB {

         public static void main (String[] args) {

              try {

    Class.forName("com.ibm.db2j.jdbc.DB2jDriver").newInstance();
                   System.out.println("Loaded the Cloudscape JDBC
    driver. Hello, World!");
                    Connection conn =

    DriverManager.getConnection("jdbc:db2j:HelloWorldDB;create=true")

    ;
                    System.out.println("Created and connected to

    database HelloWorldDB");

              } catch (Throwable e) {
                   System.out.println("exception thrown");
                   e.printStackTrace();
                 }

         }

    }

    I run it with "java -Dbd2j.system.home=C:\tutorial_system CreateWorldDB"

    And results in:
    Loaded the Cloudscape JDBC driver. Hello, World!
    exception thrown
    java.sql.SQLException: No suitable driver
                at java.sql.DriverManager.getConnection(Unknown Source)
                at java.sql.DriverManager.getConnection(Unknown Source)
                at CreateWorldDB.main(CreateWorldDB.java:18)

    What's going on? It can connect with that driver but it can't create/access?
    I'm highly confused...

    I'm running J2SE/HotSpot VM 1.4.2_03 and cloudscape5.1

    Thanks,
    Rob


  • Next message: BlackHawke: "Execute Java in a new window"

    Relevant Pages

    • Re: cloudscape
      ... > I'm a newbie in cloudscape (Java too) and I'm having a problem. ... > public class CreateWorldDB { ... > Loaded the Cloudscape JDBC driver. ...
      (comp.lang.java)
    • Anyone know where to download JDBC driver
      ... DB2jDriver for use with IBM's Cloudscape? ... they reference as the driver of choice for use with Cloudscape. ...
      (comp.lang.java.programmer)
    • Re: Cloudscape - usage of?
      ... For more information about how to use Apache Derby...the newest incarnation of Cloudscape, you can check out this online article: ... Using Java DB in Desktop Applications ...
      (comp.lang.java.databases)
    • Cloudspace including in Solaris!
      ... Sun's distribution will be called Java DB (IBM's is called ... Cloudscape)!! ... Prev by Date: ...
      (comp.databases.informix)
    • Re: Cloudscape - usage of?
      ... For more information about how to use Apache Derby...the newest incarnation of Cloudscape, you can check out this online article: ... Using Java DB in Desktop Applications ...
      (comp.lang.java.databases)