Do you have the classes102.zip and the classes111.zip added to your
classpath. See the Oracle docs. If you are using any of the Oracle
drivers you need to add these packages to your classpath.
Ellis
-----Original Message-----
From: Hugo Espinoza B. [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 26, 2000 10:43 AM
To: [EMAIL PROTECTED]
Subject: Re: Connection Error with Oracle
Employee !!!
and my CLASSPATH=$CLASSPATH:.
but teh error is equals ...
anyone sugestion?!!! is urgent ,
Tanks
On 26 May 00, at 11:56, Tao Bai wrote:
> Typo, Employee or Emloyee?
>
> -----Original Message-----
> From: Hugo Espinoza B. [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 26, 2000 11:03 AM
> To: [EMAIL PROTECTED]
> Subject: Connection Error with Oracle
>
>
> Hello
> i'm download classes12_01.zip from oracle site ,
> 1.- cp classes12_01.zip /usr/local/jdk1.2.2/bin
> 2.- export
> CLASSPATH=/usr/local/jdk1.2.2/bin/classes12_01.zi
> p:$CLASSPATH
> 3.- $javac Employee.java OK!!!
> 4.- $java Emloyee
> java.lang.NoClassDefFoundEror:Emloyee
> at java.lang.Throwable.<init>(Throwable.java:40)
> at java.lang.Error.<init>(Error.java:21)
> at
> java.lang.LinkageError.<init>(LinkageError.java:2
> 1)
> at
> java.lang.NoClassDefFoundError.<init>(Throwable.N
> oClassDefFoundError:21)
>
> but in my machine (WIN95,jdk1.2.2,Developer5 and
> 6 and TNSNAMES ) isitWorking
>
> c:>javac Employee.java OK!
> c:>java Employee
> COMPANI 1
> COMPANI 2
> COMPANI 3
>
> pls helpme
>
>
> this is Source:
> *--------------
> import java.sql.*;
>
> class Employee
> {
> public static void main (String args [])
> throws SQLException
> {
> DriverManager.registerDriver(new
> oracle.jdbc.driver.OracleDriver());
>
> Connection conn =
> DriverManager.getConnection
> ("jdbc:oracle:thin:@ipserver:pr80",
> "user", "passw");
>
> Statement stmt = conn.createStatement ();
>
> ResultSet rset = stmt.executeQuery ("select
> nomemp from sctemp");
>
> while (rset.next ())
> System.out.println (rset.getString (1));
> }
> }
>
> *----------------------
>
>
________________________________________________________________________
___
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
>
________________________________________________________________________
___
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
________________________________________________________________________
___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html