• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 336
  • Last Modified:

J# Visual 2005, Oracle JDBC Driver

Hello,

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 -

Class.forName(driverClass).newInstance();
0
kerpoise
Asked:
kerpoise
1 Solution
 
CEHJCommented:
Not that J# is Java, but you probably just need to add the driver class to the classpath
0
 
kerpoiseAuthor Commented:
I've added the class to the Windows classpath, it works fine in Java but J# it doesn't
0
 
JavatmCommented:
I believe this is how you should do it :
http://msdn2.microsoft.com/en-US/library/9bbt582h.aspx
0
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

 
hoomanvCommented:
Your Visual J++ 6.0 Project has a project-specific Classpath setting
0
 
JavatmCommented:
Just use the driver that you need ;)
0
 
Mayank SAssociate Director - Product EngineeringCommented:
Since you are running it from Visual Studio, I don't think setting the system class-path will be of any help.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

Tackle projects and never again get stuck behind a technical roadblock.
Join Now