1 posts in topic
Flat View  Flat View

Posted By:   ranjan_sen
Posted On:   Friday, March 23, 2001 10:36 AM

I am trying to connect to Oracle using the registerDriver(new oracle.jdbc.driver.OracleDriver()) on Solaris
. At compilation it goes through fine which my understanding would be that my classpath has been defined
properly. At runtime why I am getting this error and what is the solution

Re: NoClassDefFoundError

Posted By:   Aron_Tunzi  
Posted On:   Friday, June 29, 2001 04:41 AM

Easy. You haven't defined the classpath. You can compile your program, because you imported the class oracle.jdbc.driver.OracleDriver in your program.

If you write the full name of the class, for exemple "oracle.jdbc.driver.OracleDriver" you import the class. You don't need to write "import oracle.jdbc.driver.OracleDriver;" in your program.

Bye Aron
About | Sitemap | Contact