aspose file tools*
The moose likes JDBC and the fly likes getting compile time error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "getting compile time error" Watch "getting compile time error" New topic
Author

getting compile time error

saikrishna cinux
Ranch Hand

Joined: Apr 16, 2005
Posts: 689
this is the error when compile my java file i am using oci driver


D:\Tomcat4\webapps\VisuTestingServices\WEB-INF\classes>javac -d . MainServlet.java
.\oracle\jdbc\driver\OracleDriver.java:128: cannot resolve symbol
symbol : method setRestrictGetTables (boolean)
location: class oracle.jdbc.driver.OracleConnection
((OracleConnection)connection).setRestrictGetTables(s11.equalsIgnoreCase("true"
));
^
.\oracle\jdbc\driver\OracleDriver.java:130: cannot resolve symbol
symbol : method setDefaultFixedString (boolean)
location: class oracle.jdbc.driver.OracleConnection
((OracleConnection)connection).setDefaultFixedString(s12.equalsIgnoreCase("true
"));
^
.\oracle\jdbc\driver\OracleDriver.java:131: cannot resolve symbol
symbol : method setAccumulateBatchResult (boolean)
location: class oracle.jdbc.driver.OracleConnection
((OracleConnection)connection).setAccumulateBatchResult(s13.equalsIgnoreCase("true"
));
^
.\oracle\jdbc\pool\OracleOCIConnectionPool.java:150: makeURL() has private access in oracle
.jdbc.pool.OracleDataSource
makeURL();
^
.\oracle\jdbc\pool\OracleOCIConnectionPool.java:167: cannot resolve symbol
symbol : method getConnectionPoolInfo ()
location: class oracle.jdbc.oci8.OCIDBAccess
Properties properties = ((OCIDBAccess)((OracleConnection) (m_connection_pool)).db_a
ccess).getConnectionPoolInfo();
^
.\oracle\jdbc\pool\OracleOCIConnectionPool.java:225: cannot resolve symbol
symbol : method getConnectionPoolInfo ()
location: class oracle.jdbc.oci8.OCIDBAccess
Properties properties = ((OCIDBAccess)((OracleConnection) (m_connection_pool)).db_a
ccess).getConnectionPoolInfo();
^
.\oracle\jdbc\pool\OracleOCIConnectionPool.java:236: cannot resolve symbol
symbol : method getConnectionPoolInfo ()
location: class oracle.jdbc.oci8.OCIDBAccess
Properties properties = ((OCIDBAccess)((OracleConnection) (m_connection_pool)).db_a
ccess).getConnectionPoolInfo();
^
.\oracle\jdbc\pool\OracleOCIConnectionPool.java:247: cannot resolve symbol
symbol : method getConnectionPoolInfo ()
location: class oracle.jdbc.oci8.OCIDBAccess
Properties properties = ((OCIDBAccess)((OracleConnection) (m_connection_pool)).db_a
ccess).getConnectionPoolInfo();
^
.\oracle\jdbc\pool\OracleOCIConnectionPool.java:258: cannot resolve symbol
symbol : method getConnectionPoolInfo ()
location: class oracle.jdbc.oci8.OCIDBAccess
Properties properties = ((OCIDBAccess)((OracleConnection) (m_connection_pool)).db_a
ccess).getConnectionPoolInfo();
^
.\oracle\jdbc\pool\OracleOCIConnectionPool.java:268: cannot resolve symbol
symbol : method getConnectionPoolInfo ()
location: class oracle.jdbc.oci8.OCIDBAccess
Properties properties = ((OCIDBAccess)((OracleConnection) (m_connection_pool)).db_a
ccess).getConnectionPoolInfo();
^
.\oracle\jdbc\pool\OracleOCIConnectionPool.java:278: cannot resolve symbol
symbol : method getConnectionPoolInfo ()
location: class oracle.jdbc.oci8.OCIDBAccess
Properties properties = ((OCIDBAccess)((OracleConnection) (m_connection_pool)).db_a
ccess).getConnectionPoolInfo();
^
.\oracle\jdbc\pool\OracleOCIConnectionPool.java:343: cannot resolve symbol
symbol : method getConnectionPoolInfo ()
location: class oracle.jdbc.oci8.OCIDBAccess
Properties properties = ((OCIDBAccess)((OracleConnection) (m_connection_pool)).db_a
ccess).getConnectionPoolInfo();
^
.\oracle\jdbc\pool\OracleOCIConnectionPool.java:377: cannot resolve symbol
symbol : method setConnectionPoolInfo (java.util.Properties,oracle.jdbc.oci.OracleOCIConne
ction)
location: class oracle.jdbc.oci8.OCIDBAccess
((OCIDBAccess)((OracleConnection) (m_connection_pool)).db_access).setConnection
PoolInfo(properties1, m_connection_pool);
^
Note: MainServlet.java uses or overrides a deprecated API.
Note: Recompile with -deprecation for details.
13 errors

what might be the problem??


A = HARDWORK B = LUCK/FATE If C=(A+B) then C=SUCCESSFUL IN LIFE else C=FAILURE IN LIFE
SCJP 1.4
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30526
    
150

Do you have classes12.jar in your compile time classpath?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: getting compile time error