Sun.jdbc.rowset

Hi,
Any one please tell me where i can get sun.jdbc.rowset package.
please give me specific URL to download the rowset.jar file
Thanking you,
Shajahan

Hello,
It's probably this one:
http://java.sun.com/developer/earlyAccess/jdbc/jdbc-rowset.html
It may also be available in the jdk1.5.

Similar Messages

  • Package sun.jdbc.rowset does not exist

    Hi,
    I am tryng to use a CachedRowSet in a JSP page. I got rowset.jar from sun and I put it in my classpath. When I try to import sun.jdbc.rowset I have the message "package sun.jdbc.rowset does not exist".
    Please, could someone help me?
    Tanks,
    Celso

    Hi,
    Unfortunately not... The name of the package is rowset...
    Some others ideas? Thanks,
    Celso

  • Problem with sun.jdbc.rowset.CachedRowSet.

    Hi All,
    I cannot not able to import the package 'sun.jdbc.rowset.CachedRowSet'.
    while writing the path in the jsp:useBean or import to java class it shows at the compilation time that
    Error JavaCompile: sun.jdbc.rowset cannot be resolved.
    Is there any jar file needed and if then where i can find it.
    actually i need to import this for implementing the large row in paging system in jsp page.
    Thanks in advance.
    Regards
    ukbasak

    hi,
    Another link which to point over the rowset.jar file
    http://forums.systeminetwork.com/isnetforums/archive/index.php?t-36523.html

  • Sun.jdbc.rowset where go i get it n in which JDK version

    i saw some code in this forum regarding pagination where sun.jdbc.rowset is being imported..please help me . i get an error saying that sun.jdbc.rowset not found i am using jdk1.4.

    thanks i got the link from the forum
    You can find it at http://java.sun.com/developer/earlyAccess/jdbc/jdbc-rowset.html

  • Sun ONE Studio 5 evaluation. JDBC RowSet question.

    I am accessing a MYSQL database using form wizard. I am also using the DataNavaigator. When I use RowSet type: NB CachedRowSet, I can bring in and scroll through existing data, add, change, and delete rows with no problem. When I use NB JDBC RowSet, I can not do any of these things. I do not receive an error, it just not work. It is my understanding that for larger rowsets, I should be using the JDBC RowSet. Also, when calling in a large row set, how do you get to an item without scrolling to it using the DataNavagator. Thank you in adavance for your time.

    In the Sun One the is a ServerAdministrative menu by clicking on it u get a window to look that deployed application... check out the server cluster.. load balancing and stuffs like that in the same window there is a Database icon where u have to set the driver path and give the drive name.. with the max connection min connection that would solve your problem

  • How to use JDBC RowSet ?

    Dear all,
    I downloaded Jdbc Rowset and configured it in my PC. But when I use CathedRowSet,it give me the following errors.
    Exception in thread "main" java.lang.UnsupportedClassVersionError: javax/sql/Row
    Set (Unsupported major.minor version 48.0)....
    I am using JDK1.4.
    Does anybodu give me an idea ?
    Thank you.
    Kevin

    Have a look at your other thread I posted an answer there.
    These classes were probably compiled with jdk 1.3 so won't work with 1.4. You need to uninstall 1.4 and reinstall with 1.3 to use these classes.
    (the other thread is http://forum.java.sun.com/thread.jsp?forum=4&thread=292105)

  • Sun.jdbc.sql.*

    to all:
    I had to use the package of "sun.jdbc.sql.*" in jsp environment(<%@page import="sun.jdbc.sql.*"%>),so have downed the component rowset.jar from sun.com and put in my CLASSPATH,but the system coudn't find the package wherever i put the rowset.jar? but it could be found in pure java environment, why?
    urgently!!
    thanks your help

    Have you told you'r servlet engine where to find it?
    (If you need a servlet engine to run a jsp..)
    In tomcat you add something like this to you'r server.xml file
    <!-- Mysql Connection -->
              <Context path="/servlet" docBase="servlet" debug="5" reloadable="true" crossContext="true">
                   <Logger className="org.apache.catalina.logger.FileLogger" prefix="localhost_Absence_log."
                                  suffix=".txt" timestamp="true"/>
                   <Resource name="jdbc/AbsenceDB" auth="Container" type="javax.sql.DataSource"/>
                   <ResourceParams name="jdbc/AbsenceDB">
                   <parameter>
                        <name>factory</name>
                        <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
                   </parameter>
    <!-- Maximum number of dB connections in pool. Make sure you
         configure your mysqld max_connections large enough to handle
         all of your db connections. Set to 0 for no limit.
         -->
                   <parameter>
                             <name>maxActive</name>
                        <value>100</value>
                   </parameter>
    <!-- Maximum number of idle dB connections to retain in pool.
         Set to 0 for no limit.
    -->
                   <parameter>
                        <name>maxIdle</name>
                        <value>30</value>
                   </parameter>
    <!-- Maximum time to wait for a dB connection to become available
    in ms, in this example 10 seconds. An Exception is thrown if
    this timeout is exceeded. Set to -1 to wait indefinitely.
    -->
                   <parameter>
                        <name>maxWait</name>
                        <value>10000</value>
                   </parameter>
    <!-- MySQL dB username and password for dB connections -->
                   <parameter>
                        <name>username</name>
                        <value>aUsername</value>
                   </parameter>
                   <parameter>
                        <name>password</name>
                        <value>aPassword</value>
                   </parameter>
    <!-- Class name for mm.mysql JDBC driver -->
                   <parameter>
                        <name>driverClassName</name>
                        <value>com.mysql.jdbc.Driver</value>
                   </parameter>
    <!-- The JDBC connection url for connecting to your MySQL dB.
    The autoReconnect=true argument to the url makes sure that the
    mm.mysql JDBC Driver will automatically reconnect if mysqld closed the
    connection. mysqld by default closes idle connections after 8 hours.
    -->
                   <parameter>
                        <name>url</name>
                        <value>jdbc:mysql://<address to the server>?autoReconnect=true</value>
                   </parameter>
                   </ResourceParams>
              </Context>
    Hope it helps some

  • How can i put a file into blob(using sun.jdbc.odbc.JdbcOdbcDriver)

    Hi
    i tried to put a file into blob , but got a problem.....
    My environment:windows 2000pro,JBuilder 5.0 enterprise,oracle 8.1.6,(not install oracle jdbc driver )
    a part of program(my program is very uglily,if anyone want,later i paste it ba....~_~)
    //Statement stmt2=null;
    //Resultset rs2;
    //opa1 is the blob data
    void saveBlobTableToDisk(Connection con) {
    try {
    stmt2=con.createStatement();
    sqlStr2="SELECT * FROM emp3 where id=1004";
    rs2=stmt2.executeQuery(sqlStr2);
    while (rs2.next()) {
    Blob aBlob=rs2.getBlob("opa1");
    i got the exception :
    " null
    java.lang.UnsupportedOperationException
         at sun.jdbc.odbc.JdbcOdbcResultSet.getBlob(JdbcOdbcResultSet.java:4174)
         at test3.Frame1.saveBlobTableToDisk(Frame1.java:48)
         at test3.Frame1.<init>(Frame1.java:26)
         at test3.Application1.<init>(Application1.java:5)
         at test3.Application1.main(Application1.java:8) "
    and the windows pop up a messagebox said that(about) my memory "0x09af007f" could not read, error in javaw.exe .
    Later i used (ResultSet)getBinaryStream() to solve it. but getBinaryStream() only return a InputStream,so that i can make blob to a file,but i can't make a file to blob using jdbc.....
    I am very stupid that installing sun java, oracle jdbc driver etc....(because i must set a lot of thing such as classpath,java_home etc), Can i only use JBuilder to do that ?
    Or i must install oracle jdbc driver ?
    Thanks.

    My guess here is that Sun's JDBC-ODBC bridge doesn't handle the BLOB datatype. Most ODBC drivers don't support that datatype, so I wouldn't expect the bridge to.
    Is there a reason that you can't use the Oracle driver?
    Justin

  • Is it possible to connect to mysql using sun.jdbc?

    Is it possible to connect to a mysql database using sun's jdbc:odbc driver?
    I develop a page on the internet that uses mysql. The connection code is placed in a java class. I get the errormessage: "no suitable driver" when I try to connect with jsp/java classes.
    If I use PHP it is ok.
    Code:
    $db = mysql_connect("localhost", "vegg", "nbvv2003");
    mysql_select_db("vegg_timereg",$db);
    $result = mysql_query("SELECT * FROM bruker",$db);The java code is like this:
    java.sql.Connection conn = null;
    String driver = "sun.jdbc.odbc.JdbcOdbcDriver";
    try {
          Class.forName(driver);
          conn = DriverManager.getConnection("jdbc:odbc:vegg_timereg","vegg","nbvv2003");
        catch (SQLException e) {
          out.print("<font color=red>Error:</font> SQLException<br>");
          out.print(e.getMessage());
        catch (ClassNotFoundException e) {
          out.print("<font color=red>Error:</font> Driver not found<br>");
          out.print(e.getMessage());
        catch (Exception e) {
          out.print("<font color=red>Error:</font> Error on initializing<br>");
          out.print(e.getMessage());
        }For me it does not seem like there are any drivers available in java, I've tried the sun.jdbc.odbc.JdbcOdbcDriver and org.gjt.mm.mysql.Driver. The mySql driver is missing, so that is the reason, but I do not get an error message when importing the jdbc:odbc driver.
    I do not have permission to check the setup on the webserver:(
    It runs Apache webserver.

    thx, but I don't seem to get any databases. It works when I run it locally, but on the external webserver it doesn't.
    Database info:
    Name: vegg_timereg
    Place: localhost (root)
    Type: mySQL
    It doesn't seem like the mysql driver is installed on the server, so I have to use jdbc. I do not have any permissions on the server, so I can't check it out myself.
    In PHP this connection works:
    $db = mysql_connect("localhost", "vegg", "nbvv2003");
    mysql_select_db("vegg_timereg",$db); I've tried like this (using java.sql.Driver): Class.forName("java.sql.Driver");
    conn = DriverManager.getConnection("jdbc:localhost/vegg_timereg","username","password");This is really annoying when it's so easy on my machine...

  • The driver: sun.jdbc.odbc.JdbcOdbcDriver could not be loaded with jws

    Hi,
    When I execute my executable jar file, there is no problem but when I open my .jnlp with web start, I obtain my main frame but the queries don't work.
    I have the error message below :
    Java Web Start 1.2 Console, d�marr�e Fri Apr 25 14:55:59 CEST 2003
    Environnement d'ex�cution Java 2 : version 1.3.1 par Sun Microsystems Inc.
    See com.borland.dx.dataset.DataSetException error code: BASE+83
    com.borland.dx.dataset.DataSetException: The driver: sun.jdbc.odbc.JdbcOdbcDriver could not be loaded. This could be a problem with the driver itself, or that the driver is not found on the classpath.
         at com.borland.dx.dataset.DataSetException.a(Unknown Source)
         at com.borland.dx.dataset.DataSetException.driverNotLoadedAtRuntime(Unknown Source)
    Anyone can help me please?

    Almost certainly, you need to include the JAR file that contains the class in question as a resource in your JNLP. My personal preference for this kind of thing is to have an entry that actually points to another JNLP for the driver (database, e-mail, whatever you need).
    In general, the whole application has to be packaged so that JWS is aware of all the pieces (other than the JRE)--one other thing I've done in some cases is put the driver JAR's into the jre/lib/ext directory.
    HTH,
    J M Craig

  • JDBC RowSet DML Sample

    Hello,
    Excuses for school English + google,
    With javac : error: AirlinesDML.java:42: unreported exception java.sql.SQLException; must be caught or declared to be thrown private static RowSet rowset = new OracleJDBCRowSet();
    With Java version "1.5.0_06".
    I am deroute because the throws SQLException east declares in the code!
    If a person can m help that would be sympathetic nerve.
    Thank,
    Claude

    Sorry, the source :
    package oracle.otnsamples.jdbc;
    import javax.sql.RowSet;
    import oracle.jdbc.rowset.OracleJDBCRowSet;
    import java.util.ArrayList;
    import java.util.List;
    import java.io.IOException;
    import java.sql.SQLException;
    public class AirlinesDML {
    private static RowSet rowset = new OracleJDBCRowSet(); // ERROR
    protected RowSetCache rowSetCache;
    public AirlinesDML() {
    public List selectRecords(String code,String name, String partner)
    throws SQLException, IOException{
    String query = null;
    ArrayList data = new ArrayList( );
    try {      
    code = "%"+code+"%";
    name = "%"+name+"%";
    partner = "%"+partner+"%";
    query = "SELECT * FROM otn_airlines " +
    "WHERE UPPER(code) LIKE UPPER('"+code+"') AND " +
    "UPPER(name) LIKE UPPER('"+name+"') AND " +
    "UPPER(partner) LIKE UPPER('"+partner+"') ORDER BY code";
    rowset = RowSetCache.getInstance().getRowSet();
    rowset.setCommand (query);
    rowset.execute ();
    while (rowset.next ()) {        
    String[] row = new String[3];
    for ( int i = 0; i < 3; i++ ) {
    row[ i ] = rowset.getString( i + 1 );
    data.add(row);
    } finally {      
    rowset.close();
    return data;
    public void insertRecord( String code,String name,String partner )
    throws SQLException, IOException{
    String query = null;
    try {     
    query = "INSERT INTO otn_airlines VALUES ('"+code+"','"+name+"','"+
    partner+"')";
    rowset = RowSetCache.getInstance().getRowSet();
    rowset.setCommand (query);
    rowset.execute();
    } finally {      
    rowset.close();
    public void updateRecord(String code, String name, String partner)
    throws SQLException, IOException{
    String query = null;
    try {    
    query = "SELECT * FROM otn_airlines " +
    "WHERE UPPER(code) LIKE UPPER('"+code+"')";
    rowset = RowSetCache.getInstance().getRowSet();
    rowset.setCommand(query);
    rowset.execute();
    query = "UPDATE otn_airlines SET name ='"+name+"', partner ='"
    partner"' WHERE code ='"+code+"'";
    rowset.setCommand(query);
    rowset.execute();
    } finally {  
    rowset.close();
    public void deleteRecord(String code) throws SQLException, IOException{
    String query = null;
    try {   
    query = "DELETE FROM otn_airlines WHERE code='"+code+"'";
    rowset = RowSetCache.getInstance().getRowSet();
    rowset.setCommand(query);
    rowset.execute();
    } finally {      
    rowset.close();
    public boolean checkTables() throws SQLException, IOException, Exception{
    try {        
    rowset = RowSetCache.getInstance().getRowSet();
    rowset.setCommand (" SELECT table_name FROM user_tables "+
    " WHERE table_name = 'OTN_AIRLINES' ");
    rowset.execute ();
    if (!rowset.next ()) {       
    this.createSchemaTables();
    } finally {    
    rowset.close();
    return true;
    public void createSchemaTables() throws SQLException, IOException, Exception {
    this.createTable();
    this.insertRecord("2R", "2R Airways", "N");
    this.insertRecord("2S", "2S Airways", "N");
    this.insertRecord("3C", "3C Airways", "N");
    this.insertRecord("3M", "3M Airways", "N");
    this.insertRecord("4S", "4S Airways", "N");
    this.insertRecord("5A", "5A Airways", "N");
    this.insertRecord("7F", "7F Airways", "N");
    this.insertRecord("A3", "A3 Airways", "N");
    this.insertRecord("AA", "AA Airways", "N");
    this.insertRecord("AC", "AC Airways", "N");
    this.insertRecord("AD", "AD Airways", "N");
    this.insertRecord("6E", "6E Airways", "N");
    public void createTable() throws SQLException, IOException{
    try {    
    rowset = RowSetCache.getInstance().getRowSet();
    String query = "CREATE TABLE otn_airlines(code VARCHAR2(2) NOT NULL " +
    "PRIMARY KEY, name VARCHAR2(40) NOT NULL, "+
    "partner VARCHAR2(1) NOT NULL)";
    rowset.setCommand(query);
    rowset.execute();
    } finally {     
    rowset.close();
    }

  • Use of sun.jdbc.odbc.JdbcOdbcDriver

    Hi, I'm starting to work with Java and I'm trying to connect to a SQL Server 2000 database using "sun.jdbc.odbc.JdbcOdbcDriver" driver but when I try to make the connection I get this error:
    "java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
    Cannot get connection"
    Here is the my code:
    final static private String _driver = "sun.jdbc.odbc.JdbcOdbcDriver";
    final static private String _url = "jdbc:odbc:<databasename>";
    Class.forName(_driver);                    // Load Driver
    c = DriverManager.getConnection(_url, "<user>", "<passwd>");
    } catch (java.lang.ClassNotFoundException e){
    System.out.println(e.toString());
    System.out.println("Cannot find driver class");
    System.exit(1);
    } catch (java.sql.SQLException e) {
    System.out.println(e.toString());          
    System.out.println("Cannot get connection");
    System.exit(1);
    Someone can help me with this ?? I'm stuck !!
    Thanks !!

    Hi, I'm starting to work with Java and I'm trying to
    connect to a SQL Server 2000 database using
    "sun.jdbc.odbc.JdbcOdbcDriver" driver but when I try
    to make the connection I get this error:
    "java.sql.SQLException: [Microsoft][ODBC Driver
    Manager] Data source name not found and no default
    driver specified
    Cannot get connection"
    Here is the my code:
    final static private String _driver =
    "sun.jdbc.odbc.JdbcOdbcDriver";
    final static private String _url =
    "jdbc:odbc:<databasename>"; the DSN that you set up for connecting to your database. is it called <databasename>? somehow i doubt it.

  • The driver: sun.jdbc.odbc.JdbcOdbcDriver could not be loaded with I use jws

    Hi,
    I use Java web start and the problem is that java web start can't be loaded the driver.
    Here is my error message :
    See com.borland.dx.dataset.DataSetException error code: BASE+83
    com.borland.dx.dataset.DataSetException: The driver: sun.jdbc.odbc.JdbcOdbcDriver could not be loaded. This could be a problem with the driver itself, or that the driver is not found on the classpath.
    at com.borland.dx.dataset.DataSetException.a(Unknown Source)
    at com.borland.dx.dataset.DataSetException.driverNotLoadedAtRuntime(Unknown Source)
    at ...
    In my .jnlp I put :
    <resources>
    <j2se version="1.3+" />
    <jar href="ManipulationLigneAS400.jar" /> it's my application
    <jar href="classes12.zip" />
    </resources>
    I don't know what .jar I have to put?
    Someone could help me please?

    Hi,
    see your thread http://forum.java.sun.com/thread.jsp?forum=31&thread=385994
    Ulrich

  • How do I get the SUN jdbc-odbc bridge to work?

    Hi,
    I'm trying to us the SUN 1.2 jdbc-odbc bridge on Oracle 8.
    I have installed the ODBC driver from www.intersolv.com
    (Merant) and have successfully tested it.
    I have SUN 1.2 installed and verified that
    the sun JdbdOdbcDriver is in my CLASSPATH.
    My driver path is:
    sun.jdbc.odbc.JdbcOdbcDriver
    My url is
    jdbc:odbc:Oracle8
    my odbc.ini is correct, and my ODBCINI is set.
    when I try to connect I get "No suitable driver".
    The SUN documentation indicates this error means
    my shared libraries aren't correct, but I have
    verified my ODBC setup with a odbc demo app.
    Any suggestions on how to form my url?
    Has anyone used the bridge on Solaris?
    null

    The display is just too dim.  I tried the brightness and backlight settings and these do not work.  This has been like this since I bought it.  Never bothered to deal with it before and just made do with reading a very dim menu.

  • How to setting up the sun.jdbc driver in servlet

    in my servlet i implemens the MetaData Interface, The Sun JDBC driver was Not support the getMetaData() function .. I dont knw why it was
    Pls hel me

    http://www.apple.com/support/iphone/assistant/airprint/

Maybe you are looking for