Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> oracle jdbc/java java.io.file not found(help)

oracle jdbc/java java.io.file not found(help)

From: <tedchyn_at_yahoo.com>
Date: Mon, 15 Mar 1999 04:07:38 GMT
Message-ID: <7ci124$spb$1@nnrp1.dejanews.com>


Sir, I compile the following code. I encouterred following error while running the compiled code:

java.io.file not found exception: d:\javaex\applet\classes111.zip.  I am using oracle nt 8.0.5 and jdk 1.1.4

Thanks in advance
Ted Chyn(please respond to : tedchyn_at_yahoo.com)

import java.sql.*;
import java.io.*;
import java.awt.*;
import java.util.*;

import oracle.jdbc.driver.*;
import java.awt.event.*;
class Employee
{
  public static void main (String args [])

       throws SQLException, ClassNotFoundException   {
// Load the Oracle JDBC driver

    Class.forName ("oracle.jdbc.driver.OracleDriver");

    Connection conn =

      DriverManager.getConnection ("jdbc:oracle:thin:@ABCD:1521:orcl",
				   "scott", "tiger");

// Create a Statement

    Statement stmt = conn.createStatement ();

// Select the ENAME column from the EMP table
    ResultSet rset = stmt.executeQuery ("select ENAME from EMP");

// Iterate through the result and print the employee names
    while (rset.next ())
      System.out.println (rset.getString (1));   }
}

-----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own Received on Sun Mar 14 1999 - 22:07:38 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US