Classes12.zip problem :-((

Hi all, I had a problem when I open a jsp page when I use JDBC connection with classes12.zip. I currently have classes12.zip under c:\Oracle\Ora81\jdbc\lib and I set my environment variable:
1st try to set: CLASSPATH=c:\Oracle\Ora81\jdbc\lib
2nd try to set: CLASSPATH=%CLASSPATH%;c:\Oracle\Ora81\jdbc\lib
3rd try to set: CLASSPATH=$ORACLE_HOME\jdbc\lib
Then I reboot my machine and start my Tomcat Server. None of these setting is working at all. Here is the error that I get when I load my jsp page:
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: -1 in the jsp file: null
Generated servlet error:
[javac] Since fork is true, ignoring compiler setting.
[javac] Compiling 1 source file
[javac] Since fork is true, ignoring compiler setting.
[javac] C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\_\t_jsp.java:8: package oracle.jdbc.driver does not exist
[javac] import oracle.jdbc.driver.*;
[javac] ^
[javac] C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\_\t_jsp.java:59: cannot resolve symbol
[javac] symbol : class OracleDriver
[javac] location: package driver
[javac]           DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
[javac] ^
[javac] 2 errors
I read several classes12.zip problem that posted on this forum, but none of them help me at all. By the way my OS is Window 2000 and Tomcat 4.1, Oracle 8.1.7 Enterprise
Please give me some advices how to fix this.
Thanks

Thanks for all your advices, I did try Weiming Zhao
and 734 instruction, but still not working. By the way, when I do javap oracle.jdbc.driver.OracleDriver, I got the following:
C:\Dev>javap oracle.jdbc.driver.OracleDriver
Compiled from OracleDriver.java
public class oracle.jdbc.driver.OracleDriver extends java.lang.Object implements
java.sql.Driver {
public static final char slash_character;
public static final char at_sign_character;
static final java.lang.String oracle_string;
static final java.lang.String user_string;
static final java.lang.String password_string;
static final java.lang.String database_string;
static final java.lang.String server_string;
static final java.lang.String access_string;
public static final java.lang.String protocol_string;
public static final java.lang.String dll_string;
public static final java.lang.String logon_as_internal_str;
static final java.lang.String prefetch_string;
static final java.lang.String row_prefetch_string;
static final java.lang.String default_row_prefetch_string;
static final java.lang.String batch_string;
static final java.lang.String execute_batch_string;
static final java.lang.String default_execute_batch_string;
static final java.lang.String remarks_string;
static final java.lang.String report_remarks_string;
protected static java.sql.Connection m_defaultConn;
static {};
public oracle.jdbc.driver.OracleDriver();
public boolean acceptsURL(java.lang.String);
public java.sql.Connection connect(java.lang.String, java.util.Properties) t
hrows java.sql.SQLException;
public java.sql.Connection defaultConnection() throws java.sql.SQLException;
public static java.lang.String getCompileTime();
public int getMajorVersion();
public int getMinorVersion();
public java.sql.DriverPropertyInfo getPropertyInfo(java.lang.String, java.ut
il.Properties)[] throws java.sql.SQLException;
public boolean jdbcCompliant();
There is a SQLException, is this normal? This classes12.zip stop me for the last 4 days. Please advise.
Thanks

Similar Messages

  • No classes12.zip included with Linux Oracle 8.1.7 client install??

    I noticed on the linux client install - it includes a
    lclasses11.zip, but this is not the JDBC classes that come with
    Windows clients.
    1.) What is the lclasses11 or 12.zip files for?
    2.) Do I need to copy Windows client classes12.zip, etc to a
    linux client? What aren't these included?
    Thanks
    CHris

    Hi,
    I faced a problem that I want a Oracle8 driver for Linux, so I
    can connect my DB that installed in NT from Linux, I see that
    you face the same problem, I hope you find a solution, so could
    you please help me in this, should I install Oracle in the
    Linux, or not, from where can I install every thing.
    Thanx,
    Ahmed.

  • Time out connection in the classes12.zip

    Hello,
    How can I change the time out connection to my database in Java ? I use the JDBC thin driver (classes12.zip) to connect to an 8.1.6 standard Oracle edition on an NT Server.
    I tested a network problem connection removing the network cable and then my application waits 20 minutes to raise an exception.
    Thanks
    Guillaume Facon

    You need to set a tcpip timeout at the os level. Oracle jdbc does not support timeouts.

  • Oracle 9i Driver (classes12.zip) WL 6.1

    I have added the classes12.zip into the CLASSPATH of WL and configured the connection pool to point to an Oracle 9i database. WL starts up with no problem, but here's my 2 questions:
    1. How can I be sure that WL is really using the Oracle 9i JDBC driver instead of the 8i version (included with WL)? Is there a command that I can type to find out?
    2. On some instance of WL, after I point it to an Oracle 9i WL automatically adds dll=ocijdbc9 to the properties text box, but on some WL instance it doesn't add the dll=ocijdbc9 to the properties text box. I am using type 3 driver and not type 2 driver so dll=ocijdbc9 doesn't really matter, just curious on why WL sometime automatically add the dll=ocijdbc9 and sometime it doesn't.
    Any inputs from anyone will be greatly appreciated.
    Thanks!
    Robert

    Hi Robert,
    weblogic should work with any JDBC 2.0 compatible driver.
    Generally certification means that the driver has passed all
    weblogic tests and thus officiall support is provided for related
    issues. In other words, the fact that driver for 9.2 has not been
    certified for weblogic 6.1 doesn't mean that it can not be used
    with 6.1.
    Regards,
    Slava Imeshev
    "Robert Simpson" <[email protected]> wrote in message
    news:3d949c5a$[email protected]..
    Thank you Joe for your response. I really appreciate it! Two morequestions please....
    >
    I believe WL6.1sp2 is not certified to work with Oracle 9.2 and WL7.0sp1is certified to work with Oracle 9.2, am I right?
    >
    So the certification is referring to the internal WL type 2 driver(jdriver) and not referring Oracle 9.2 database and if that's the case, we
    can still download the classes12.zip (Oracle JDBC driver), but since this is
    a 3rd party JDBC driver, WL still do not officially certified it?
    >
    Bottomline if we want to use Oracle 9.2 we should use WL7.0sp1 since thisis officially certified by BEA. Am I right?
    >
    Thanks again!
    Robert

  • Usage of java.sql.Timestamp with classes12.zip and ojdbc14.jar  ?

    Hi all,
    If i'm using java.sql.Timestamp with classes12 it is functioning perfectly,
    if i'm using ojdbc14 and java.sql.Timestamp it is functioning in different way and failing to do the action..
    Example : update set xxx=yy where time = my Timestamp object set in Prepared statement
    Hope to see the answer

    http://forum.java.sun.com/thread.jspa?threadID=460615&messageID=2116517
    Timestamp insert problem
    Using the "classes12.zip" file that comes with the distribution for Oracle versions 8.1.6.x and 8.1.7.x, Oracle's DATE datatype is mapped to the "java.sql.Timestamp" class. However, the "ojdbc14.jar" driver maps DATE to "java.sql.Date", and "java.sql.Date" only holds a date (without a time), whereas "java.sql.Timestamp" holds both a date and a time.

  • CLASSPATH=$ORACLE_HOME/jdbc/lib/classes12.zip not recognized

    I have included classes12.zip in my CLASSPATH for the user oracle but everytime I try to compile JdbcCheckup.java,
    I get the error
    Can't find type "oracle/jdbc/driver/OracleDriver"
    why can't my Linux machine recognize the driver inside classes12.zip?
    Do I need to unzip it and put it in the proper path.
    (I tried that with OracleDriver.class , but then I get some other error
    i.e
    java.lang.NoClassDefFoundError: antlr/collections/AST
    at at.dms.kjc.Main.beautifyParseError(Main.java:692)
    at at.dms.kjc.Main.parseFile(Main.java:488)
    at at.dms.kjc.Main.run(Main.java:119)
    at at.dms.kjc.Main.compile(Main.java:449)
    at at.dms.kjc.Main.main(Main.java:432)
    Somebody, anybody help.
    p/s I had the same problem when I was using 8.1.6.2. I have since installed 8.1.7 and JDK 1.2.2, and I still have the same problem.

    Sasan,<br>
    The file translation.zip is supposed to be located at the mentioned folder.<br>That was right till 9.2. That does no more the case from 10g. <br>Translator.zip was replaced by translator.jar.<br>
    Download JPublisher 10g Release 10.2, you will find translator.jar which you need to add at your CLASSPATH instead of translator.zip.<br>
    <br>
    Nicolas.

  • Setting the classpath of classes12.zip for Tomcat

    Hi
    I am using Apache Tomcat webserver and while trying to run a jsp page which intializes oracle.jdbc.driver.OracleDriver it throws an error
    java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
    Please suggest how to set the classpath of classes12.zip in Apache Tomcat
    My Code Snippett
    <%@ page import="java.util.*,java.sql.*,javax.servlet.*"%>
    <body>
         <%
         Connection con ;
         ResultSet rs ;
         Statement stmt ;
         ResultSetMetaData rsmd ;
         try{ 
         Class.forName("oracle.jdbc.driver.OracleDriver");
         catch(Exception e)
         out.println(e);//print the exception on the command prompt
    %>

    The simplest way to do this is to copy classes12.zip to the WEB-INF/lib directory. The JSP should then find this automatically.
    As a side note, that is an ancient JDBC driver - you might want to upgrade to something from this millennium.

  • Wrong metadata retrieved when using Oracle8.1.7 + classes12.zip

    Hi,
    I am using Oracle8.1.7+classes12.zip+jdk1.2.2.
    I am always retrieving the wrong metadata for the tables. The same piece of code works fine when using Oracle8.1.5+classes111b.zip+jdk1.2.2.
    The code is as follows :
    try {
    db = Database.getDatabase();
    con = db.getConnection();
    ps = con.prepareStatement("SELECT * FROM " + tablename);
    meta = (ps.executeQuery()).getMetaData();
    } catch(SQLException e) {
    Debug.log("ServerMetaCache::requestMeta " + e);
    System.err.println("ServerMetaCache::requestMeta " + e);
    return null;
    The following is a list of the column name retrived from the metadata :
    TABLE_CAT
    TABLE_SCHEM
    TABLE_NAME
    COLUMN_NAME
    KEY_SEQ
    pk_name
    Anyone encountered this before?
    null

    The code I posted above was incomplete.
    The complete code is as shown below:
    db = Database.getDatabase();
    con = db.getConnection();
    ps = con.prepareStatement("SELECT * FROM " + tablename);
    meta = (ps.executeQuery()).getMetaData();
    try {
    int count = meta.getColumnCount();
    columns = new ColumnDefinition[count];
    System.out.println("tname = " + tname);
    System.out.println("column count = " + count);
    for (int i = 0; i < count; i++) { // arrays starts from 0 while columns start from 1
    String colName = meta.getColumnName(i+1); // get the database name for this column
    System.out.println("colName = " + colName);
    catch(SQLException e) {
    System.err.println(e.toString());
    The result is :
    tname = Product
    column count = 6
    colName = TABLE_CAT
    colName = TABLE_SCHEM
    colName = TABLE_NAME
    colName = COLUMN_NAME
    colName = KEY_SEQ
    colName = PK_NAME
    null

  • Help!: JDBC driver classes12.zip

    I use Oracle8i v. 8.1.6 release 2 under Linux platform (RH 7).
    I found out that there's no 'classes12.zip' file (the JDBC Driver supports JDK1.2) in my $ORACLE_HOME/jdbc/lib. It only got:
    classes111.zip
    classes111_g.zip
    jndi.zip
    jta.zip
    nls_charset11.zip
    What should I do?
    Is there any download/cure for this?
    Thank you.

    Hi,
    download at http://otn.oracle.com/software

  • Where can I find classes12.zip

    I have oracle 8.1.6 on HP-UX and try to use JDBC1.2, but I could not find classes12.zip file. Where can I download it from? Thanks

    Try to search on the Oracle Home directory on your HP_UNIX box that you installed Oracle. Usually, the drive will be in an sub folder called jdbc. Good luck!

  • JBuilder archive cannot find classes12.zip

    Here's the prob:
    I run the JBuilder archive tool to create an application jar. Then when I run the jar file from the command prompt the application opens fine, until I try to log onto the Oracle database. I then get and "FileCannotBeFound" error on the classes12.zip. I have it in my classpath as well as my project properties. I am unable to figure out why it works fine at complie and runtime through JBuilder but doesn't when running through the jar. Any suggestions?

    When you create an application JAR, does the manifest have a Class-Path entry that includes classes12.zip?
    "...I have it in my classpath as well as my project properties..." does this mean you've got it in a system CLASSPATH environment variable? JBuilder and java.exe are ignoring it.
    I don't know about JBuilder, but Eclipse requires that you add 3rd party JARs to the project build path individually in a custom manner. I'll bet that JBuilder is similar. Check the docs to see how you might do that inside JBuilder.

  • How to match xsu12.jar with classes12.zip

    Can anyone tell me how to do it

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Steven Muench ([email protected]):
    Not sure what the question is.
    If you use classes12.zip in your classpath, use xsu12.jar in your classpath, too.
    If you use classes111.zip in your classpath, use xsu111.jar in your classpath, too.
    <HR></BLOCKQUOTE>
    Thank you! It works now.
    null

  • Compatibilty of classes111.zip with classes12.zip?

    We are using classes111.zip for our application .( JDBC thin client being used on Oracle 8i , Application Server is WEBLOGIC )
    We require scrollable resultset for one module , so for that we require classes12.zip.
    Can i use it ?
    If yes will it affect my programs using classes111.zip ?
    null

    In JDBC 8.1.6 almost all of the features (with the exception of support for java.sql.{Blob,Struct,Ref,Clob,SQLData}) of JDBC 2.0 are available in both, the classes111 and classes12 libraries.
    However, if you use classes111.zip you'd need to cast to oracle.jdbc.driver.OracleXxxx entities instead of using java.sql.Xxxx.

  • Difference between Classes111.zip and Classes12.zip?

    Hi!
    Earlier we used to use Classes111.zip now a days mostly we use classes12.zip.
    What is the comparison among the two?
    What are the special things that are achieved in Classes12.zip over Classes111.zip
    Can I have explanation about it?
    Thanks in Advance
    -Sagar

    classes111.zip is for JDK1.1 while classes12.zip id for JDK1.2 and above.
    Col

  • When i take file classes12.zip

    Hi all,
    When I take file classes12.zip?
    I need that file for database connection URL?
    Can you give me link for download this file?
    Thanks,
    Best Regards
    Okik Setianto

    Welcome to the forum!
    >
    When I take file classes12.zip?
    I need that file for database connection URL?
    Can you give me link for download this file?
    >
    Here is the official FAQ site with all the jars.
    And it has the link to the main download page
    http://www.oracle.com/technetwork/database/features/jdbc/index-091264.html
    And that page has the link for Oracle 8i files which include classes12.
    http://www.oracle.com/technetwork/database/enterprise-edition/jdbc817-100207.html
    Why do you need such an ancient file?

Maybe you are looking for

  • Command_link generated by JSTL does not return value attribute

    Since data_table CANNOT RENDER DATA IN SINGLE ROW, MULTIPLE COLUMNS, I am using the following to show the data as links in single row, multiple columns <TABLE><TR><TD> <c:forEach var="item" items="${MyBean.Filters}"> <c:set var="myLink" value="${item

  • New Mac laptop and Illustrator CS3

    I tranferred over Illustrator to my new laptop and when I try to open it, this is what I get... You cannot use this product at this time. You must repair the problem by uninstalling and then reinstalling this product or contacting your IT administrat

  • Solaris 10 AMD Athlon Opteron BIOS microcode patch

    I've recently installed Solaris 10 on AMD Opteron machine, AMD64 On boot, I receive a message "BIOS microcode patch not found...erratum 109" or something to that effect. this is followed by a bunch of "not enough space" comments. I've tried to find s

  • Text area submits

    I created a form that submits articles. Articles consist of paragraphs. Every time I insert a article into a database, I lose those paragraphs so when its posted on the website, its just one big blob of text. How can I keep my paragraphs when I submi

  • How to stop Radius/Tacacs service in ACS 5.2 ?

    Hi, is there a way to stop the Radius/Tacacs service in ACS 5.2 from the GUI ?