Sun Jdbc and j++, Help!!!

Hello,
I'm trying to use the Sun Jdbc-Odbc bridge with MS J++.
if I import the rt.jar file to the classpath of my project in j++, as I run or debug the project, I get the following error message: "Unable to locate system class: java/lang/String"
How do I use the sun Jdbc-Odbc bridge, on the MS - J++
environment?
so far I managed to work with JBuilder, but I have a slow computer, and J++ is my only solution.
thanks in advance....

Hi,
J++ has its own VM. You cannot add the runtime classes from another VM because this will cause incompatibilities between them.
There are other IDE's that are faster then JBuilder (like RealJ or JCreator). Perhaps you can use one of those.
I think there is also a jdbc-odbc bridge delivered with J++, but I can't remember its exact class name. I don't recommend using it since MS doesn't support J++ anymore.

Similar Messages

  • Help on RFC to JDBC and JDBC to RFC

    Help on RFC to JDBC and JDBC to RFC
    Hi Gurus
    I have the scenario where an RFC will be triggered in SAP , to write to a DB2 database and insert new records in a table
    and vice versa the JDBC has to read som data from a table based on a primary key, mark them as read for not be read next time and send the data to an RFC where a table in SAP will be updated.
    I have never worked with JDBC before , pls advice.
    is there any new issue to consider in PI 7.0 regarding JDBC
    Thanks.

    The requirement looks standard,
    SEARCH IN SDN FOR JDBC scenarios,you will find many docs for sender as well as Receiver.
    >
    > is there any new issue to consider in PI 7.0 regarding JDBC
    >
    no issue with PI7.0.
    Regards,
    Raj

  • b font color ='red' Java JDBC and Oracle DB URGENT HELP PLEASE /font /b

    Hello, I am a newbie. I'm very interested in Java in relation to JDBC, Oracle and SAP.I am trying to connect to an Oracle DB and I have problems to display the output on the consule in my application. What am I doing wrong here . Please help me. This is my code: Please Explain
    import java.sql.*;
    import java.sql.DriverManager;
    import java.sql.Connection;
    public class SqlConnection {
         public static void main(String[] args) {
              Class.forName("oracle.jdbc.driver.OracleDriver"); //Loading the Oracle Driver.
              Connection con = DriverManager.getConnection
              ("jdbc:orcle:thin:@34.218.5.3:1521:ruka","data","data"); //making the connection.
              Statement stmt = con.createStatement ();// Sending a query to the database
              ResultSet rs = stmt.executeQuery("SELECT man,jean,test,kok FROM sa_kostl");
              while (rs.next()) {
                   String man = rs.getString("1");
                   String jean = rs.getString("2");
                   String test = rs.getString("3");
                   String kok = rs.getString("4");
                   System.out.println( man, jean, test,kok );//here where my the
                                                 //compiler gives me errors
              stmt.close();
              con.close();
    }

    <b><font color ='red'>Java JDBC and Oracle DB URGENT HELP PLEASE</font></b>Too bad your attempt at getting your subject to have greater attention failed :p

  • Problem with JDBC and Tomcat

    I don't know where the problem originate, the only thing in my memory is that the program worked very well on my PC yesterday, but today, without even slightest change, it doesn't work anymore. As to debug it, I simplified the codes to the least, but it still refuse to work. I was beaten down by this problem totally, and cannot make out any solution for it, so, I come here, hoping to find a warrior to kill this damned bug for me.
    My program is a Servlet, but for the purpose of debugging, I have recode it to an Application/Servlet. When run as a application, I can get the result expected, but as a Servlet, :-(, maybe you should see it by yourself. My server software is Tomcat 4.1.15, and the JDK version is 1.4.0. To excute this program, you should add Data Source "Test" to ODBC.
    ///////////////////////code begins/////////////////////////
    import java.sql.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.util.*;
    public class Ex extends HttpServlet
         int ErrorType = 0;
         String err = new String("");
         public static void main(String args[]) throws Exception{
              Ex cEx = new Ex();
              cEx.init();     
              System.out.println(cEx.ErrorType);     
         public void init() {
              String url = "jdbc:odbc:Test";
              ErrorType = 3;     //passed
              try{
                   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              } catch (ClassNotFoundException e) {
                   e.printStackTrace();
                   ErrorType = 1; //trapped in Class.forName
              try{
                   Connection c = DriverManager.getConnection(url);
              } catch (SQLException e) {
                   e.printStackTrace();
                   ErrorType = 2; //trapped in DriverManager.getConnection
                   err = e.getMessage();
         public void service(HttpServletRequest req, HttpServletResponse res)
                   throws IOException {
              res.setContentType("text/html; charset=GB2312");
              PrintWriter out = res.getWriter();
              out.println("Success " + "<p>" + ErrorType + "<p>" +err);
              out.close();
    //////////////////////////code ends///////////////////////////////
    The result from the Servlet tell me that the problem occurred within the connection process, I don't know who should be responsible to this - Tomcat or JDBC?

    If you could print the exception that you got then that would help :) In the mean time, I could make a guess. It is unlikely that your application server (in this case, Tomcat) is blocking connections from your servlet. So the problem is either with JDBC directly or with the underlying datasource. It seems unlikely that it is JDBC given that you have stated that the code has not changed and it works in application form.
    My guess would be that you are coming up against some sort of security constraint (eg: your DBMS is letting you log in from one IP but not another?, your Java plug-in security policy is disallowing the connection?). It's hard to say.
    But if it works as an application but not via a servlet then you could try putting this in your java.policy file, which is located in the directory where your plug-ins are installed (eg: "C:\Program Files\Java\<version>\lib\security\") on Windows systems;
    permission java.net.SocketPermission "bend xp:1099", "listen,connect,accept";
    Try that, see if it works :)
    Ben

  • IDoc to JDBC  and JDBC to IDoc Scenario

    Dear All,
    I am working on IDoc to JDBC and JDBC to IDoc Scenario.
    I have to send Idoc from SAP to Non SAP system(.NET application) i almost configured in XI but still i don't know when my INTEGRATION will INVOKE how my data will proceed from IDOC to Oracle database(Through JDBC) and in case of revese how and when Data flow will start.
    Does anyone have completed STEP by STEP scenario document for this?
    How my Idoc will sent to XI?
    How XI will pick up data from IDoc?
    How XI will Convert data to JDBC and UPDATE in Oracle Database?
    And i reverse case(JDBC to IDoc) when my INTEGRATION will INVOKE?
    Where and When i can watch my process and data?
    How can i test the whole integration?
    I AM GETTING ERROR WHILE TESTING CONFIGURATION IN Integration Directory "Error while refreshing the XI runtime cache" and when i check this in SXI_CACHE  it gives me error
    "Unable to refresh cache "NO_BUSINESS_SYSTEM"
    "Error during last refresh to cache"LCR_GET_OWN_BUSINESS_SYSTEM - NO_BUSINESS_SYSTEM"
    Please solve all the above problems i will reward u points
    thanks,
    RP

    Hi,
    While we working on IDOC to JDBC interface..
    We have to deploy JDBC Drivers?
    Go through this links,
    /people/varadharajan.krishnasamy/blog/2007/02/27/configuring-jdbc-connector-service-to-perform-database-lookups
    http://searchsap.techtarget.com/tip/0,289483,sid21_gci1246926,00.html
    To install JDBC driver follow the how to guide.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-how-to-guides/how%20to%20install%20and%20configure%20external%20drivers%20for%20jdbc%20and%20jms%20adapters.pdf
    Configuration of JDBC Adapter for SQL Server
    JDBC Driver = com.microsoft.jdbc.sqlserver.SQLServerDriver
    Connection = jdbc:microsoft:sqlserver://hostname:<port>;DatabaseName=<DBName>
    UserID and Password.
    If the connection is not working find the correct port number.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40b92770-db81-2a10-8e91-f747188d8033
    JDBC- X I -  R/3 Scenario
    /people/bhavesh.kantilal/blog/2006/07/03/jdbc-receiver-adapter--synchronous-select-150-step-by-step
    /people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30
    Please check the driver path as mentioned below.
    JDBC Driver : sun.jdbc.odbc.JdbcOdbcDriver
    Connection:jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=//location of DB table.mdb;
    No JDBC driver required.
    Receiver JDBC scenario MS access - /people/sameer.shadab/blog/2005/10/24/connecting-to-ms-access-using-receiver-jdbc-adapter-without-dsn
    follow this thread
    Re: Problem when connecting to MS Access through JDBC Adapter.
    SAP Note 850116 has details
    /people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change
    Configuring the Sender JDBC Adapter
    http://help.sap.com/saphelp_nw04/helpdata/en/1d/756b3c0d592c7fe10000000a11405a/content.htm
    Configuring the Receiver JDBC Adapter
    http://help.sap.com/saphelp_nw2004s/helpdata/en/b0/676b3c255b1475e10000000a114084/content.htm
    Idoc Reveiver adapter..
    http://help.sap.com/saphelp_erp2004/helpdata/en/b9/c5b13bbeb0cb37e10000000a11402f/content.htm
    Thanks,
    Satya Kumar
    /people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change
    Edited by: SATYA KUMAR AKKARABOYANA on May 8, 2008 5:51 PM

  • Problem using JDBC and MS SQL Server

    I got a problem trying to acces a database on my SQL Server. I created the table and my connection seems ok, but when i try to get some data from a table, this happens (see below).
    java.sql.SQLException: [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object name 'players'.
    at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6879)
    at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7036)
    at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(JdbcOdbc.java:3065)
    at sun.jdbc.odbc.JdbcOdbcStatement.execute (JdbcOdbcStatement.java:338)
    at sun.jdbc.odbc.JdbcOdbcStatement.executeQuery(JdbcOdbcStatement.java:253)
    at Team.<init>(Team.java:18)
    at Simulator.main(Simulator.java:5)
    here's the code that i used to access the db with:
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection conn = DriverManager.getConnection
    ("jdbc:odbc:BRAIN2WINXPPJH","sm","sm");
    Statement stm = conn.createStatement();
    String query = "Select * from players where teamnr = " + nr +
    " order by squadnr";
    ResultSet rs = stm.executeQuery(query);
    any help is more than welcome
    tnx
    Jo

    If all the tables are in the same database, you can use
    Connection.setCatalog("db-name")
    to change the current database. But the suggestion to include the database name in the SQL statement is safer, because you do not need to worry about changing the database at the right point.
    Thomas

  • 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

  • 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

  • JDBC virgin needs help.

    Hi, I am a 2nd year university student doing JDBC for the first time.
    I think my problem lies in the ODBC data sources rather than the code since the code works on the machine in university (NT) but not on my home PC (XP). When I run the code I get no errors but nothing happens in terms of interrogating or writing to the database (Access).
    I have tried a crude debug by performing a System.out.print at various stages and the result is that the message will display before I implement executeUpdate but not after. Any wise tips on how to ensure that my database is set up and working properly in XP? (I am sure this is the root of the problem rather than the code <supplied here anyway>)
    import java.sql.*;
    import java.io.DataInputStream;
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    public class JDBCFrame extends JFrame implements ActionListener{
         JButton insert,extract,edit,delete;
         JTextField textid,textname;
         JTextArea output;
         JScrollPane scroll;
         Connection db_connection;
         Statement db_statement;
         public JDBCFrame(){
              // set up GUI
              Container content = this.getContentPane();
              content.setLayout(new GridLayout(5,1));
              textid=new JTextField("ID goes here");
              textname = new JTextField("Name goes here");
              content.add(textid);
              content.add(textname);
              insert = new JButton("Insert");
              insert.addActionListener(this);
              extract = new JButton("Extract");
              extract.addActionListener(this);
              edit = new JButton("Edit");
              edit.addActionListener(this);
              delete = new JButton("Delete");
              delete.addActionListener(this);
              content.add(insert);
              content.add(extract);
              content.add(edit);
              content.add(delete);
              output = new JTextArea();
              scroll = new JScrollPane(output);
              content.add(scroll);
              try{
                   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
                   //String url = "jdbc:odbc:"+"demo";
                   String url = "jdbc:odbc:demo";
                   //String url = "jdbc:odbc:;Driver={Microsoft Access Driver (*.mdb)};DBQ=demo.mdb";
                   db_connection = DriverManager.getConnection(url,"","");
              catch(Exception ce){}
         public void actionPerformed(ActionEvent ev){
              if(ev.getSource()==extract){
                   try{
                        extract();
                   catch(Exception e){}
              if(ev.getSource()==edit){
                   try{
                        edit();
                   catch(Exception e){}
              if(ev.getSource()==insert){
                   try{
                        insert();
                   catch(Exception e){}
              if(ev.getSource()==delete){
                   try{
                        delete();
                   catch(Exception e){}
         public void edit() throws Exception{
              String names = textname.getText();
              String id = textid.getText();
              System.out.print("*** Connecting ***");
              db_statement.executeUpdate("UPDATE employee SET name="+names+"WHERE ID="+id);
              db_connection.commit();
         public void insert() throws Exception{
              String names = textname.getText();
              String id = textid.getText();
              db_statement.executeUpdate("INSERT INTO employee VALUES("+id+","+names+")");
              db_connection.commit();
         public void delete() throws Exception{
              String id = textid.getText();
              db_statement.executeUpdate("DELETE FROM employee WHERE ID= "+textid.getText());
         public void extract() throws Exception{
              output.setText("");
              if(textname.getText().equals("")){
                   ResultSet result2 = db_statement.executeQuery("SELECT * FROM employee WHERE ID="+textid.getText());
                   while(result2.next()){
                        output.setText(output.getText()+"ID:"+result2.getInt("ID")+"t"+result2.getString("Name")+"\n");
              ResultSet result=db_statement.executeQuery("SELECT * FROM employee WHERE name="+textname.getText()+"");
              while(result.next()){
                   output.setText(output.getText()+"ID:"+result.getInt("ID")+"\t"+result.getString("Name")+"\n");
         public static void main(String args[]){
              JDBCFrame win=new JDBCFrame();
              win.setSize(100,200);
              win.setVisible(true);
              win.addWindowListener(new WindowAdapter(){
                   public void windowClosing(WindowEvent e){
                        System.exit(0);
              

    Obviously "NullPointerException", because "db_statement" IS NEVER ASSIGNED A VALUE! [D'OH]
    Aren't you missing some code, like:
    db_statement = db_connection.createStatement();(for example)?
    Hope this helps.
    Good Luck,
    Avi.

  • JDBC connectivity please help...

    i already created a datasource at my administrative tools with
    Data Source Name: PayrollData
    Databse selected is:G:\java app\payroll\data\payrolldata.mdb
    payrolldata.mdb has a mastempl table this is a list of personnel.
    here is my code to connect to my database:
    protected void lostFoc(){
    String data="jdbc:odbc:PayrollData";
    try{
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection conn=DriverManager.getConnection(data,"","");
    Statement stm=conn.createStatement();
    ResultSet rsmastempl=stm.executeQuery("SELECT * FROM mastempl");
    txtecode.setText(rsmastempl.getString("ecode")); //display 1 of the many account numbers in the mastempl table.
    stm.close();
    catch (SQLException s){
    catch (Exception e){
    when executing this method from it seems that there is no records being retrieved and it seems that the ResultSet rsmastempl is empty.
    what is wrong with my code?
    thank u for helping me.
    killuasoft

    Hi
    After retriving data from batabase into resultset object,we have to keep a while condition which is modified as below,then it wont give empty
    try{
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection conn=DriverManager.getConnection(data,"","");
    Statement stm=conn.createStatement();
    ResultSet rsmastempl=stm.executeQuery("SELECT * FROM mastempl");
    while(rsmastempl.next)
    txtecode.setText(rsmastempl.getString("ecode")); //display 1 of the
    many account numbers in the mastempl table.
    stm.close();
    catch (SQLException s){
    catch (Exception e){
    }

  • Sun.jdbc.JdbcOdbcDriver ClassNotFoundException

    Hello, I'm using Eclipse, I have created a small test class as I have never used SQL before(except for some querying) and have imported the MySQL connector J .jar, and the whole folder directory (just to be sure).
    I keep getting ClassNotFoundException on "sun.jdbc.JdbcOdbcDriver" which is preventing me from getting this to work.
    Is the class name a typo ? or what should the code look like?
    import java.sql.*;
    public class Main
        public static void main(String[] args)
            try
                Connection c = Connect.openDatabase
                ("jdbc:mysql://localhost/booksdb:3306", "root", "dbsd202");
                Statement statement = c.createStatement();
                ResultSet rs = statement.executeQuery("Select * from titles");
                while (rs.next())
                    System.out.printf("%s\t%s\t%s\n",
                              rs.getObject("title"), rs.getObject(1));
            catch (SQLException e)
                e.printStackTrace();
    class Connect
        static Connection conn;
        static Connection openDatabase(String url,String user,String pw)
            try
                Class.forName("sun.jdbc.JdbcOdbcDriver");
                conn = DriverManager.getConnection(url,user,pw);
            catch(Exception e)
                System.out.printf("%s\n", e);
                conn = null;
            return conn;
    }

    I'm not really a java expert, but as far as I know you have to install the jdbc-driver and to add the path to the driver to CLASSPATH-variable.
    If that doesn't help, you shoul post you question in a java forum, e.g. this one:
    http://forums.oracle.com/forums/category.jspa?categoryID=288

  • 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

  • Tomcat, JDBC and other APIs

    Hi all,
    This must be one of the most trivial questions to ask, but I'm new, so please bear with me.
    I have downloaded Tomcat, JDBC and JSSE. The question is: in which directory should I unpack these files and how should I set them up so that my Java compiler (JAVAC) will recognize this change?
    I am using the Java Software Development Kit version 1.3, and all of the class files, compilers and sample code that came with the SDK are in C:\jdk1.3.0_02\.
    Thank you in advance,
    cindybubbles

    Hi there,
    There's not much to installing Tomcat other than unzipping the distribution file, moving it to the place where you want it to be in your filesystem and then following the installation instructions in the Tomcat User's guide. This involves setting the TOMCAT_HOME and JAVA_HOME environment variables. Once you've set JAVA_HOME then Tomact can now find your Java installation.
    The core JDBC package is included in jdk1.3.0_02, if it's the optional package that have then just install it's jar file in c:\jdk1.3.0_02\jre\lib\ext
    JSSE also can be installed as a standard extension so copy it's jar file to c:\jdk1.3.0_02\jre\lib\ext.
    When a jar file is added to c:\jdk1.3.0_02\jre\lib\ext, the classes and packages that it contains will be available to you and to other applications that use the jdk (such as Tomcat). The term Standard Extension has been replaced with "Optional Package" now, but you are likely to still see both terms used interchangeably.
    Hope this helps.
    Amanda
    Developer Tech Support, Sun Microsystems

  • 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

Maybe you are looking for

  • Problem w/ cover flow view

    To begin I'd like to say I'm not new to message boards and even a forum moderator for the company Streetglow. I've searched for hours trying to figure out my cover flow problem and I just can't get it to organize the way I like. I've had a few proble

  • Get bindings of a region in the page

    Hi folks, I am using Jdev 11.1.1.4.0 I have a page fragment which has a region inside it and other components too. The components (not part of the region) are bound to a view object. I get the bindings of this page using FacesContext fc = FacesContex

  • Not firing valueUnbound for HttpSessionBindingListener

    Hi, Having an application deployed in Websphere 5.1. When the session is created for a user, valueBound() is called properly. Session timeout has been set to 10 mins. On timeout, it is suppose to call the valueUnbound(). It was tested and found to be

  • Making Multiple Entries Into iTunes Library Columns

    Is there any way to enter the same data for multiple songs into a column I have selected for my iTunes library? For instance I would like to subdivide my jazz songs into categories like Bop, Bosa Nova and Progressive. I added the columns "Category" a

  • Check DB finished with warning

    Dear all, Check DB finished with warning from DB13, kindly check the detail log . BR0969I Checking database administration... BR0970W Database administration alert - level: WARNING, type: CRITICAL_TABLESPACE, object: PSAPSR3, value: (max_extn of 5 fi