About debug
hi all:
I have a appliction to connect database ,Running can connect the database correct , but It is invalid when debuging it .
error msg:
Wed Sep 10 09:29:40 CST 2003: Failed register JDBC driver: oracle.jdbc.driver.OracleDriver
Error: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
This is my log
Running it :
Wed Sep 10 09:29:40 CST 2003: success register JDBC driver : oracle.jdbc.driver.OracleDriver
Wed Sep 10 09:29:40 CST 2003:success to create pool :ConnectionPool
why ?
my eviroment :
xp
s1 4 update 1
[635 byte] By [
zebra-ch] at [2007-11-25 10:16:28]

my database is oracle9i , if reason is about enviroment setting ,how to do it ?
--And jdbc20x.zip have any bug , I have some code success compiled by javac (dos mode),but can't by the IDE
error msg as follows:
C:/devtools/s1studio/ee/lib/ext/jdbc20x.zip(javax/sql/DataSource.java) [32:1] class DataSource is public, should be declared in a file named DataSource.java
(source unavailable)
1 error
Errors compiling DBConnectionManagerForJNDI.
my source code :
try
{
Context ct = new InitialContext();
DataSource ds = (DataSource)ct.lookup("ConnectionPool");
cn = ds.getConnection();
}
catch(Exception e)
{
e.printStackTrace() ;
}
Hi There,Im not sure of this but maybe you are missing some import statements , I think its import java.sql.*;If that doesnt work, please post whole class code.ThanksKishore
all code as follows:
package com.hisun.mvqq.bean;
/**
*
* @author Administrator
*/
import java.sql.*;
import javax.sql.DataSource;
import javax.naming.*;
import java.util.*;
public class DBConnectionManagerForJNDI extends Object implements java.io.Serializable
{
/** Creates new DBConnectionManager */
public DBConnectionManagerForJNDI()
{
}
public static Connection getConnection()
{
Connection cn= null ;
try
{
Context ct = new InitialContext();
DataSource ds = (DataSource)ct.lookup("ConnectionPool");
cn = ds.getConnection();
}
catch(Exception e)
{
e.printStackTrace() ;
}
return cn ;
}
}
This is about question two(jdbc20x.zip bug)
Would you tell me some thing about first question(the distinction between debug enviroment and running enviroment)