about application debug

hi:

I have an application , it can connect database correct when it is run,but I want debug my DBBean, it can't connect to database. error message as follows:

java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver

The running environment is not same as debug environment ?

-- And the lib/ext/jdbc20x.zip have some bugs , I have an application is correct compiled with javac (dos mode),but compiled with IDE,the jdbc20x.zip have a error message:

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 as follows:

try

{

Context ct = new InitialContext();

DataSource ds = (DataSource)ct.lookup("ConnectionPool");

cn = ds.getConnection();

}

[956 byte] By [zebra-ch] at [2007-11-25 10:15:44]
# 1

Yelang,

Found the following:

http://www.waterware.com/projects/samples/RouteMaster/tutorial.jsp

NOTE: if you get an error saying something like "could not compile Class Closure Compiler" shut down Sun ONE Studio. Go to <Studio Installation directory>\Studio\lib\ext and open the file jdbc20x.zip with WinZip. Select all the .java files if they exist and select Actions - Delete from the menu. Restart Sun ONE Studio and try again.

Also

http://docs.sun.com/source/817-2332/jdbc.htmlAt the bottom:

Running Your JDBC Application

You can compile, run, and debug JDBC applications as if they were any other form. If you need special JDBC drivers, ensure they are in the Sun ONE Studio 5 CLASSPATH, so they will, by default, be available for external compiling, executing, and debugging of JDBC-based forms.

You can run your application external to the IDE by adding paths to these packages into your CLASSPATH:

modules/ext/sql.jar

modules/ext/rowset.jar

lib/ext/jdbc20x.zip

A corresponding JDBC driver. JDBC drivers are typically stored in lib/ext.

If a WebRowSet is used in your JDBC application, two more JAR files are required:

lib/ext/parser.jar

lib/ext/xerces.jar

utsukushii at 2007-7-1 20:26:53 > top of Java-index,Development Tools,Java Tools...