Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> oracle jdbc/java java.io.file not found(help)
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.*;
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
![]() |
![]() |