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

Reply via email to