Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-11-2007, 06:32 PM
Member
 
Join Date: Aug 2007
Posts: 3
javaneed is on a distinguished road
Problem connecting to my Database using Java
Hi all,

I am new to Java and also new to this forum.

First of al hi to al of u.

I am facing a problem. I have developed an application using Java Jsp, which connects to Oracle database, which is in my system only.

but after starting tomcat when i am running the jsp which is in turn connecting to the database, i am getting the following error -

java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver

I have set the environment variable CLASSPATH with the classes12.zip file. then also i am getting this error

Please Help

Thanx n Regards
Sam
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-11-2007, 11:11 PM
JavaBean's Avatar
Moderator
 
Join Date: May 2007
Posts: 1,272
JavaBean is on a distinguished road
Hi Sam,

This is the third thread i have seen for the same problem. Please do not cross-post the same question. Here is the FAQ for the forum rules:

http://www.java-forums.org/faq.php?faq=forumrules
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 08-13-2007, 05:33 AM
Member
 
Join Date: Jul 2007
Posts: 72
Swamipsn is on a distinguished road
Hi,
This problem is a most common one , its means your JVM unable to find out oracle.jdbc.driver.OracleDriver class file. So place the driver class file into
both Java and Tomcat's lib directory.
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 08-13-2007, 10:35 AM
Member
 
Join Date: Aug 2007
Posts: 2
sunnyvijaya is on a distinguished road
can u paste ut jsp file so that i can go thru the cpde
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Connecting to a database peiceonly New To Java 2 04-06-2008 03:28 PM
problem in connecting to mysql database nancyv Java Servlet 6 04-02-2008 12:33 PM
Specifying the character set while connecting to the database Java Tip Java Tips 0 02-13-2008 12:26 PM
connecting to a database mxb7642 Database 1 12-05-2007 05:14 PM
connecting to mysql database javagal NetBeans 2 08-04-2007 01:36 PM


All times are GMT +3. The time now is 03:06 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org