473,396 Members | 2,034 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

i get a classdef not found error in my code.help me

Expand|Select|Wrap|Line Numbers
  1. import java.io.*;
  2. import java.sql.*;
  3.  
  4. import java.lang.*;
  5.  
  6. public class OraThin 
  7. {
  8.   public static void main(String[] args)
  9.  {
  10.     try {
  11.       Connection con=null;
  12.       Class.forName("oracle.jdbc.driver.OracleDriver");
  13.       con=DriverManager.getConnection("jdbc:oracle:thin:@saran:1521:ss", "scott", "tiger");
  14.       Statement s=con.createStatement();
  15.       s.execute("INSERT INTO ss VALUES ('William Shakespeare')");
  16.       s.close();
  17.       con.close();
  18.    }
  19.  catch(Exception e)
  20.   {
  21. e.printStackTrace();
  22. }
  23.  }
  24. }



my classpath is
classpath=".C:\oraclexe\app\oracle\product\10.2.0\ server\jdbc\lib"
Jan 3 '11 #1
1 1589
Oralloy
988 Expert 512MB
Looks like you have a classpath error.

Try:
Expand|Select|Wrap|Line Numbers
  1. SET classpath=.;C:\oraclexe\app\oracle\product\10.2.0\server\jdbc\lib
  2.  

I removed the quotes and the space before the word "server".

Luck!
Oralloy
Jan 3 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: TimS | last post by:
I am getting a baffling File not found error (0x800A0035). I am writing asp on a windows 2000 server. I build a path and filename from several fields in a jet database using SQL commands, like...
2
by: TeknoCat | last post by:
Hey everyone, I may be repeating myself here, but if someone sent a reply then I missed it, and I can't get Outlook Express to download any messages more than 2 days old. Anyway, I'm having a...
8
by: Matt | last post by:
I am migrating from NT 4.0 (IIS 4) to 2003 Server (IIS 6). Our Intranet has numerous applications that utilize the FileSystemObject (FSO) and each one is returning a "Path not found." error. These...
0
by: bjattupuram | last post by:
Hi, I have a problem with my DB2 V5 on OS/390. When I start DB2 using -start db2 commands the start-up JCL is abending with 806 error which is " REQUESTED MODULE DSNAA NOT FOUND " The...
1
by: timVerizon | last post by:
Hoping someone can help here.. Our application (C#.Net) was receiving IBM.Data.DB2.DB2Exceptions ERROR SQL0904N Unsuccessful execution caused by an unavailable resource. Reason code: '', type...
1
by: MyndPhlyp | last post by:
I am about to completely lose what is left of my poor mynd! The historical dissertation gets rather verbose, so I hope you can wade through it all. I really need some help on this one or I'm...
15
by: warlord | last post by:
I have a windows client app that is trying to download a file from a web server but I always get the following error when I call the GetResponse method of the Request object. The remote server...
3
by: Hamilton | last post by:
Hi there, I've seen this error appear a few times in newsgroups but unfortunately I haven't found one that actually provides a solution. I'm basically deploying a new website into an area at a...
1
windows_mss
by: windows_mss | last post by:
I Used the above code to Handle the HTTP Error Code, My Problem Is as follows, This My Program URL http://localhost/Work/CustErr/Default.aspx, When I alter The URL Like This...
4
by: EmilyA | last post by:
Hi! I'm not that good at programming, so I was wondering if anyone could tell me why I'm getting an unreachable statement error for lines 18, 35, 68, and 86. import java.util.ArrayList; ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.