File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes oracle problems? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "oracle problems?" Watch "oracle problems?" New topic
Author

oracle problems?

Divya Sanjeev
Greenhorn

Joined: Dec 16, 2009
Posts: 18
Hi All,

Please help me with the following code::

When I compile the above piece of code, I get java.lang.NoClassDefFoundError ...Please help.

Regards,
Divya
Wendy Gibbons
Bartender

Joined: Oct 21, 2008
Posts: 1098

Divya you haven't told us what the problem is, so it makes it a little hard to help you fix it.
which class can't it find? and i added code tags for you (they are in the toolbar above where you type).

And i gave your thread a title, when we have more information i will pick a better title.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19216

If the Oracle driver JAR file was not on your class path, I would expect a ClassNotFoundException - not a NoClassDefFoundError. That means that a class that was resolved during compile time (so not using Class.forName) is now missing. It could be that the Oracle driver JAR file is missing a dependency. We need the stack trace to help you further.


SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: oracle problems?
 
Similar Threads
Maps
Problem Displaying JTable
Strings in a List
delete values from a hastable
Out of Bounds Exception returns and the eradication thereof.