473,387 Members | 1,374 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

cloudscape

Rob
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").newI nstance();
System.out.println("Loaded the Cloudscape JDBC
driver. Hello, World!");
Connection conn =

DriverManager.getConnection("jdbc:db2j:HelloWorldD B;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
Jul 17 '05 #1
1 2729
"Rob" <ta******@yahoo.com> wrote in message news:<LI********************@comcast.com>...
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").newI nstance();
System.out.println("Loaded the Cloudscape JDBC
driver. Hello, World!");
Connection conn =

DriverManager.getConnection("jdbc:db2j:HelloWorldD B;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

You define "bd2j.system.home" when running the code, but the package
name is "db2j.system.home" If what you're defining is important, the
program is not going to be able to find it. Use:

java -Ddb2j.system.home=C:\tutorial_system CreateWorldDB

You might have other problems, but start with that.

---
Jared Dykstra
http://www.bork.org/~jared
Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Google Mike | last post by:
This is big news! http://story.news.yahoo.com/news?tmpl=story&ncid=1817&e=8&u=/zd/20050225/tc_zd/146644&sid=96120751...
0
by: Bon Bon | last post by:
I am trying to deploy the J2EE PetStore application with cloudscape running on port 2001 instead of the default port 1099. I have changed the Server configuration by modifying the...
0
by: Bon Bon | last post by:
I am trying to run the Java PetStore Demo using clouldscape. But my default RMI registry port 1099 is taken by some other program. So I am running cloudscape on port 2001. But then the deployment...
0
by: ccc31807 | last post by:
Just wondering since IBM donated Cloudscape to the Apache Foundation .... Does anyone know if Perl can use Cloudscape, and if so, how Cloudscape stacks up against the alternatives? I've used...
2
by: Alex Ivascu | last post by:
Hi. I'm new to working with DB2j, but am looking for a reference manual which will give me a list of available/recommended values for the db2j.stream.error.logLeverityLevel parameter. Thanks in...
3
by: IOANNIS MANOLOUDIS | last post by:
Hello I downloaded cloudscape 10.0 from sourceforge. There is also the database derby available for download from the Apache incubator. Is there a difference between these two products? Are there...
6
by: news.ozemail.com.au | last post by:
Anyone using Cloudscape in production? Is it a viable platform or are IBM just dreaming?
2
by: astolpho | last post by:
I am using a slightly outdated reference book on J2EE programming. It gives 2 methods of creating a database used in its casestudies. The first is an ANT script that gives the following output: ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.