DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2004
    Posts
    1

    JBuilder not connecting to Oracle

    Hi. I have developed a website using Borland JBuilder v6 but cannot connect to my database on Oracle v8.1 via code. If I use the Database pilot, I can connect successfully:

    Database Pilot
    URL jdbc.oracleci8:@GEM
    Driver oracle.jdbc.driver.OracleDriver
    UserName GEM
    Database Product Oracle
    Database Version Oracle 8i Enterprise Edition Release 8.1.7.0.0 - Production
    Driver Version 8.1.7.0.0

    However, I get the following messages when accessing from the program:
    oracle.jdbc.driver.OracleDriver
    No suitable driver

    Here is the code I am using:

    static {
    initializeConnections("oracle.jdbc.driver.OracleDriver",
    // "jdbcracle:thin:@localhost:1521:ORCL",
    "jdbcracleci8:@GEM",
    "gem", "gm", 3);
    }//initializeConnections Method

    Please let me know if there anything I have left out or if there is more information that you require as I am new to Java?

    Thanks,
    Chad

  2. #2
    Join Date
    Feb 2004
    Posts
    808
    the DriverManager has queried all of the available drivers and asked them if they can handle/create a connection to a database based on the URL given

    all of them have said "no"

    consult the documentation for advice on how to forge a conenction using this particular driver
    The 6th edict:
    "A thing of reference thing can hold either a null thing or a thing to any thing whose thing is assignment compatible with the thing of the thing" - ArchAngel, www.dictionary.com et al.
    JAR tutorial GridBag tutorial Inherited Shapes Inheritance? String.split(); FTP?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links