Oracle Thin JDBC Driver Problem - Run time



Hi,
i did the following code:

import java.sql.* ;
import java.lang.*;

class TestCommand {

public static void main(String a[] ) throws SQLException
{
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
Connection con =

DriverManager.getConnection("jdbc:oracle:thin:@project:1521:proj","project1",
"admission");
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("select * from admin");
while( rs.next() )
System.out.println( rs.getString("regno")) ;
}
}

i Successfully compiled. but in runtime i found the following error.
Exception in thread "main" java.lang.NoClassDefFoundError: TestCommand

but same driver URL i safely connecting in netbeans 5.0..... Successfully
running SQL commands & retrieving data.
.



Relevant Pages