J# Visual 2005, Oracle JDBC Driver

Posted on 2006-05-10
Last Modified: 2010-05-18

I'm programming an SQL querier, and need to reference the oracle.jdbc.driver.OracleDriver, which is fine in Java. However, when using J# when I try to reference oracle.jdbc.driver.OracleDriver my program hangs.

Is there somewhere in the MS Visual J# 2005 environment I need to define the Oracle JDBC as an environmental variable?

I have defined it in my Windows Environmental Variables.

It hangs on this line of code -

Question by:kerpoise
    LVL 86

    Expert Comment

    Not that J# is Java, but you probably just need to add the driver class to the classpath

    Author Comment

    I've added the class to the Windows classpath, it works fine in Java but J# it doesn't
    LVL 15

    Accepted Solution

    I believe this is how you should do it :
    LVL 14

    Expert Comment

    Your Visual J++ 6.0 Project has a project-specific Classpath setting
    LVL 15

    Expert Comment

    Just use the driver that you need ;)
    LVL 14

    Expert Comment

    LVL 30

    Expert Comment

    Since you are running it from Visual Studio, I don't think setting the system class-path will be of any help.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    bunnyEars2 challenge 6 46
    noX challenge 17 54
    Updating Java 9 62
    maven java path setting 5 32
    For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
    In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
    Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
    Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now