Oracle JDBC and Swing Applets

Hi
I'm trying yo connect to an oracle databse using the oracle thin driver
in a Swing Applet deriving from JApplet class using a JTable .
Note my browser is Swing enabled and i can view normal swing applets.
But i get an error which says
Oracle/jdbc/driver/oracel/driver not found
But if i run this as an application instead of a swing applet it works
Remember it's a Swing Applet not a normal Applet.and the oracle driver works in a normal application.this error occurs only when the oracle driver is used in a Swing Applet.
any ideas?
mail me at [email protected]
'**********************Heres the code************************
import java.sql.*;
import java.lang.*;
import java.awt.*;
import java.applet.Applet;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.util.*;
<applet code =testdata.class width=300 height=300></applet>
class databaseconnect{
public Connection conn;
public ResultSet rs;
databaseconnect(){}
     public void connect(){
          try{
          DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());     
          conn = DriverManager.getConnection("jdbc:oracle:thin:@theserver:1521:dbase", "un", "pw");
          }catch(SQLException e) { }
     public ResultSet getdata(){
          try{
          Statement st = conn.createStatement();
          rs = st.executeQuery("select * from tt");
          }catch (SQLException e) { }
     return rs;
class toggledata{
static ResultSet rs;
static String s,r;
//public static void main(String args[]){
databaseconnect data = new databaseconnect();
public String makestr(){
     s = "1";
     r = "1";
     try{
     data.connect();
     rs = data.getdata();
          while(rs.next()){
               s = s + "," + rs.getString(1);
               r = r + " " + rs.getString(2);
     }catch (SQLException e) {}
     //System.out.println(s);
     //System.out.println(r);
return s;
public class testdata extends JApplet{
int d,cont,y;
String t;
char n,m;
int c;
Object h;
//public testdata(){
public void init(){
     //super("My First Oracle Application");
     cont = 0;
     y=1;
     h = ",";
     //colstr e = new colstr();
     toggledata f = new toggledata();
     String rs = new String(f.makestr());
     Object [][] data = new Object [1][15];
     char chars [] = rs.toCharArray();
     for(int x=0; x<15; x++){
          data [0][cont] = new Integer(chars[x]);
          cont = cont + 1;
     String [] col ={"a","b","c","d","e","f","g","h","i","f","g","h","i","j","k"};
     final JTable table = new JTable(data, col);
     table.setPreferredScrollableViewportSize(new Dimension(500, 70));
     JScrollPane scrollPane = new JScrollPane(table);
     getContentPane().add(scrollPane, BorderLayout.CENTER);
//public static void main(String args []){
//     testdata g = new testdata();
//     g.pack();
//     g.setVisible(true);
Thanks

continued...
I re-read your problem , your problem is as same as me.
So, unzip classes12.zip oy folder /htdocs/ on your server
, when this file is unziped it will create the necessary
folders and files so your program will find the drivers
classes and I think your problem is solved.
Thanks Jamanir

Similar Messages

  • Passing pl/sql table to Java using Oracle JDBC and vice - versa

    A small article on the given topic with sample code and comments, to make code crystal:
    http://mukx.blogspot.com/2007/12/passing-plsql-table-to-java-using.html
    --Mukul                                                                                                                                                                                                                                                                                                                                                           

    Tapash,
    I have seen people using Rosetta in almost all projects in previous years, frequently in couple of projects. I was not aware that Rosetta is an internal thing, anyways if that is the case y oracle is shipping rosetta jar file to customers?
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Oracle.jdbc vs oracle.jdbc2

    Hello World,
    Whar is the differens between
    oracle.jdbc
    and
    oracle.jdbc2
    Where ca I read more about it?
    Best regards
    Anders Gunnare
    Frontec

    The weblogic driver is a type 2 (native) driver based upon the native OCI
    Oracle client libraries. The Oracle thin driver is a type 4 (pure java)
    driver. Type 2 drivers are typically faster but if you want to make a
    performance based decision you should also include the type 2 driver(s)
    available from Oracle in the comparison.
    -Charlie
    Mahesh wrote:
    Hi,
    We are curently using Oracle thin drivers for our
    production servers. The Weblogic version is 5.1 SP9 and Oracle version is
    8.1.6. Does anybody have any information about performance comparisons
    between Weblogic's thin drivers and Oracle's ?
    Thanx in advance
    Mahesh

  • Admin_client jar - add "remove-inherited" for oracle.jdbc shared library

    Guys,
    I am using admin_client.jar utility which comes oracle 10.1.3 to deploy our web-application on the oc4j server, everythings is working fine, except for this small issue, where i want to avoid having the shared library "oracle.jdbc" inherited by web-module (which is by default inherited by all apps apparently), since i want to use the oracle-jdbc driver bundled with the war. Now i do that the solution is to introduce a "remove-inherited" tag (for the oracle.jdbc library) under the "inherited-shared-libraries" element in the orion-application.xml file (generated on deployment by oc4j), but what i want to know is how to automate this process of adding this entry, since we dont want to have any manual intervention on deployment.
    Though admin_client.jar so far has provided all the functionality required for deployment but it apprarently doesnt any way where we can specify the shared-libraries not to be inherited by the deployed war..
    Any comments/suggestions ?
    Thanks and Regards,
    Message was edited by:
    user632496
    Message was edited by:
    user632496

    Alright that makes sense.
    Yes, spot on. The suggestion I made was contingent on having an EAR file -- even though we accept a WAR file from you, we ultimately produce an EAR file from it during the deployment phase. If you don't want to produce an EAR file then its not viable for you.
    Another possible solution is one that you are sort of suggesting here -- each application can be specified as a child of a parent application -- from which it will inherit various libraries and configuration settings.
    What you could do is to deploy a single, dedicated application on which you configure the shared-library import to the JDBC driver you want -- and then you simply choose that application as the parent, whereupon the child application will pick up the shared-library setting.
    There current, visible parent of all deployed applications is the "default" application. What you could do is to tweak the configuration of the default applicaiton so it uses a different JDBC library to the one it inherits from its actual parent (the system application). The configuration for the default application is contained within the j2ee/home/config/application.xml file -- which if you look at it, is actually an "orion-application.xml" file. So if you make the change there, it will apply to all the applications that are deployed to the container.
    Just found it in the doc:
    http://download.oracle.com/docs/cd/B32110_01/web.1013/b28952/classload.htm#CIHFFBCA
    Even easier, what you evaluate is a simpler approach where you install and publish the Oracle JDBC driver you wish to use, with the name "oracle.jdbc" and set it with a higher version (which I assume you are doing) than the deafault one -- whereby from how the config in the application.xml is set and where the oracle.jdbc driver is imported, it should pick up the higher version -- so that way you don't even need to change the config file -- simply publish the later versioned library using the name oracle.jdbc and it should be picked up.
    Currently the version in 10.1.3.3 is:
    <shared-library name="oracle.jdbc" parent="api" version="10.1.0_2">
    So if you published the jdbc driver you want to use with the name oracle.jdbc and a higher version, then the import of oracle.jdbc will default to the latest version, which should pick up your library.
    Thus all you need to do is a one-off publishing operation of a new shared-library (oracle.jdbc: 10.1.2.3 for example) and it then should be picked up implicitly by all deployed applications.
    Worth testing my theory though ... ;-)
    -steve-

  • A sign Applet unable to load "oracle.jdbc.OracleDriver" class

    hi,
    i am chiranjit , i am now working in a web based ERP. where i am using a signed applet which unable to load "oracle.jdbc.OracleDriver" class but it easily loading "sun.jdbc.odbc.JdbcOdbcDriver", i am also giving my code:
    import java.sql.*;
    import java.math.*;
    import java.io.*;
    import java.awt.*;
    class JdbcTest extends Applet{
    public static void main (String args[]) throws SQLException {
    // Load Oracle driver
    DriverManager.registerDriver (new oracle.jdbc.OracleDriver());
    // Connect to the local database
    Connection conn =
    DriverManager.getConnection
    ("jdbc:oracle:thin:@192.168.16.7:1521:kris",
    "plsql", "oracle");
    // Query the employee names
    Statement stmt = conn.createStatement ();
    ResultSet rset = stmt.executeQuery ("SELECT FIRST_NAME FROM
    AUTHORS");
    // Print the name out
    while (rset.next ())
    System.out.println (rset.getString (1));
    // Close the result set, statement, and the connection
    rset.close();
    stmt.close();
    conn.close();
    }

    Hint: The sun.jdbc.odbc.JdbcOdbcDriver is available in any JRE distribution. The Oracle driver is not.

  • Differences between Oracle JDBC Thin and Thick Drivers

    If any body is looking for this information...
    ============================================================
    I have a question concerning the Oracle JDBC thin vs. thick drivers
    and how they might affect operations from an application perspective.
    We're in a Solais 8/Oracle 8.1.7.2 environment. We have several
    applications on several servers connecting to the Oracle database.
    For redundancy, we're looking into setting up TAF (transparent
    application failover). Currently, some of our apps use the Oracle
    <B>JDBC thin</B> drivers to talk to the database, with a connection
    string that like this:
    <B> jdbc:oracle:thin:@host:port:ORACLE_SID </B>
    In a disaster recovery mode, where we would switch the database
    from one server to another, the host name in the above string
    would become invalid. That means we have to shut down our application
    servers and restart them with an updated string.
    Using the Oracle <B>OCI (thick)</B> driver though, allows us to connect
    to a Net8 service instead of a specific server:
    <B> jdbc:oracle:oci8:@NET8_SERVICE_NAME </B>
    Coupled with the FAILOVER=ON option configured in Net8, it is
    then possible to direct a connection from the first server to
    the failover database on another server. This is exactly what
    we would like to do.
    My question is, from an application perspective, how is the Oracle
    thick driver different from the thin driver? If everything
    else is "equal" (i.e. the thick driver is compatible with the
    app servers) would there be something within the the thick/OCI
    driver that could limit functionality vs. the thin driver?
    My understand, which obviously is sketchy, is that the thick
    driver is a superset of the thin driver. If this is the case,
    and for example if all database connections were handled through
    a configuration file with the above OCI connection string, then
    theoretically the thick driver should work.
    ============================================================
    <B>
    In the case with the Oracle, they provide a thin driver that is a 100% Java driver for client-side use without the need of an Oracle installation (maybe that's why we need to input server name and port number of the database server). This is platform indipendent, and has good performance and some features.
    The OCI driver on the other hand is not java, require Oracle installation, platform dependent, performance is faster, and has a complete list of all the features.
    </B>
    ========================================================
    I hope this is what you expect.
    JDBC OCI client-side driver: This is a JDBC Type 2 driver that uses Java native methods to call entrypoints in an underlying C library. That C library, called OCI (Oracle Call Interface), interacts with an Oracle database. <B>The JDBC OCI driver requires an Oracle (7.3.4 or above) client installation (including SQL*Net v2.3 or above) and all other dependent files.</B> The use of native methods makes the JDBC OCI driver platform specific. Oracle supports Solaris, Windows, and many other platforms. This means that the Oracle JDBC OCI driver is not appropriate for Java applets, because it depends on a C library to be preinstalled.
    JDBC Thin client-side driver: This is a JDBC Type 4 driver that uses Java to connect directly to Oracle. It emulates Oracle's SQL*Net Net8 and TTC adapters using its own TCP/IP based Java socket implementation. <B>The JDBC Thin driver does not require Oracle client software to be installed, but does require the server to be configured with a TCP/IP listener. Because it is written entirely in Java, this driver is platform-independent.</B> The JDBC Thin driver can be downloaded into any browser as part of a Java application. (Note that if running in a client browser, that browser must allow the applet to open a Java socket connection back to the server.
    JDBC Thin server-side driver: This is another JDBC Type 4 driver that uses Java to connect directly to Oracle. This driver is used internally by the JServer within the Oracle server. This driver offers the same functionality as the client-side JDBC Thin driver (above), but runs inside an Oracle database and is used to access remote databases. Because it is written entirely in Java, this driver is platform-independent. There is no difference in your code between using the Thin driver from a client application or from inside a server.
    ======================================================
    How does one connect with the JDBC Thin Driver?
    The the JDBC thin driver provides the only way to access Oracle from the Web (applets). It is smaller and faster than the OCI drivers, and doesn't require a pre-installed version of the JDBC drivers.
    import java.sql.*;
    class dbAccess {
    public static void main (String args []) throws SQLException
    DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection
    ("jdbc:oracle:thin:@qit-uq-cbiw:1526:orcl", "scott", "tiger");
    // @machineName:port:SID, userid, password
    Statement stmt = conn.createStatement();
    ResultSet rset = stmt.executeQuery("select BANNER from SYS.V_$VERSION");
    while (rset.next())
    System.out.println (rset.getString(1)); // Print col 1
    stmt.close();
    How does one connect with the JDBC OCI Driver?
    One must have Net8 (SQL*Net) installed and working before attempting to use one of the OCI drivers.
    import java.sql.*;
    class dbAccess {
    public static void main (String args []) throws SQLException
    try {
    Class.forName ("oracle.jdbc.driver.OracleDriver");
    } catch (ClassNotFoundException e) {
    e.printStackTrace();
    Connection conn = DriverManager.getConnection
    ("jdbc:oracle:oci8:@qit-uq-cbiw_orcl", "scott", "tiger");
    // or oci7 @TNSNames_Entry, userid, password
    Statement stmt = conn.createStatement();
    ResultSet rset = stmt.executeQuery("select BANNER from SYS.V_$VERSION");
    while (rset.next())
    System.out.println (rset.getString(1)); // Print col 1
    stmt.close();
    =================================================================

    Wow, not sure what your question was, but there sure was a lot of information there...
    There really is only one case where failover occurs, and it would not normally be in a disaster recovery situation, where you define disaster recovery as the obliteration of your current server farm, network and concievably the operational support staff. This would require a rebuild of your server, network etc and isn't something done with software.
    Fail over is normally used for high availablity that would take over in case of hardware server failure, or when your support staff wants to do maintenance on the primary server.
    Using the thin and thick driver should have ZERO affect on a failover. Transparent failover will make the secondary server the same IP as the primary, therefore the hostname will still point to the appropriate server. If you are doing this wrong, then you will have to point all your applications to a new IP address. This should be something that you tell your management is UNACCEPTABLE in a fail-over situation, since it is almost sure to fail to fail-over.
    You point out that you are providing the TNSNAME, rather than the HOSTNAME when using the thick driver. That's true within your application, but that name is resolved to either a HOSTNAME, or IP ADDRESS before it is sent to the appropriate Oracle server/instance. It is resolved using either a NAME server (same as DNS server but for Oracle), or by looking at a TNSNAMES file. Since the TNSNAMES files profilerate like rabbits within an organization you don't want a fail over that will make you find and switch all the entries, so you must come up with a fail over that does not require it.
    So, the application should not be concerned with either the hostname, or the IP address changing during fail over. That makes use of the thin or thick client acceptable for fail over.
    Don't know if this will help, but this shows the communication points.
    THIN DRIVER
    client --> dns --> server/port --> SID
    THICK DRIVER
    client --> names server --> dns --> server/port --> SID
    client --> tnsnames     --> dns --> server/port --> SID

  • Load oracle jdbc driver error when run applet via the web

    Hi All,
    I have built an applet which connect to database via jdbc thin driver. It works fine when I run it through the applet viewer, but got a problem when run it through the web.
    java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver
    I am using jdev9i 9.0.4 and jdk 1.4.2. The jdbc version is 9.0.1
    I have added both the classes12.zip and ojdbc14.zip in the class path and also pack them together with my applet class. Here is the code
    public class MyApplet extends Applet
    implements Runnable
    public void start()
    if(theThread == null)
    theThread = new Thread(this);
    theThread.start();
    Retrieve R = new Retrieve();
    this.MyMap = R.retrieveDesc();
    public class Retrieve
    public Retrieve()
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    conn=DriverManager.getConnection("jdbc:oracle:thin:@babyruth.wvu.edu:1703:devdw", User, Password);
    conn.setAutoCommit(true);
    connectStatus = true;
    public HashMap retrieveDesc()
    return map;
    I have also built one HTML page NewApplet like this
    <HTML>
    <HEAD>
    <TITLE> My New Applet</TITLE>
    </HEAD>
    <APPLET CODE="MyApplet.class" CODEBASE="menu" ARCHIVE="MyApplet.zip" WIDTH=300 HEIGHT=485>
    <!--General Settings-->
    <param name="bgcolor" value="255,255,255">
    </HTML>
    Any advice is highly appreciated
    Mei

    Sir,
    Well you haven't "packed" them correctly. Why don't you just add the driver bits to the soucebase tag? or something like that anyway...
    Sincerely,
    Slappy

  • Oracle Jdbc Thin driver and nls suppot

    Hello,
    I have a hungarian database with nls_lang variable set to hungarian. I'm trying to do a jdbc connection using classes12.zip
    but I'm getting the hungarian characters converted to question marks or other characters.
    I read suggestions that I must include the nls_charset12.zip in my classpath too. So I did that but I'm still having the same problem.
    What is missed??
    How do I get the right hungarian charachters without any conversion.
    This is becoming frustrating and I'm not able to solve it yet.
    Thanks for your help

    One more question -
    Can we use Oracle JDBC OCI driver? We do not have any appletes...
    Does it have firewall issues too? Is there any other driver that
    we can use?
    Thanks,
    Vijaya.

  • Oracle JDBC Thin Driver and Firewall Problem

    Hi!
    We have Oracle 8.1.5 and Websphere App Server. There is a
    firewall between the two. A servlet creates a connection pool
    (not that of Wesphere's). The frontend is JSP/HTML (no applets).
    The servlet uses the Oracle JDBC Thin Driver for DB Connections.
    The problem is - Once the connection is freed, the connection
    pool is not being able to retrieve it and hence it created
    another one, thus reaching the max. # of connections and the
    system hangs. Restarting the DB service flushes the connection
    and the application starts running again...
    There was a similar problem discussed in this forums long ago. I
    have not yet tried mentioning the firwall port and IP in the
    connection string. But apart from that, is there any other
    setting I need to do (on firewall or for the connectionstring)
    to deal with this problem?
    Someone had suggested to punch a hole in the firewall for the DB
    port - but we can not really do that in the current scenario...
    I would appreciate if anyone could share their experience
    regarding how they resolved this issue.
    Thanks in advance,
    Vijaya.

    One more question -
    Can we use Oracle JDBC OCI driver? We do not have any appletes...
    Does it have firewall issues too? Is there any other driver that
    we can use?
    Thanks,
    Vijaya.

  • Oracle JDBC driver initilalize an applet in the background

    I am writing an APPLICATION that is connecting with database.
    When I execute the code two dialog windows with title 'APPLET ALERT' appear and it ask for a permission:
    -The applet is attempting to invoke the java/lang/System.getProperty() operation on user.name
    -The applet is attempting to connect to [database name]
    When I allow permissions then program continues ok, when i disallow then an exception is thrown: Exception in thread "main" com.trend.iwss.jscan.runtime.AppletTrapStopError: Applet disabled by IWSVA Javascan site policy.
    Whether I allow or disallow following output is printed on the console:
    Current policy properties:
    mmc.sess_pe_act.block_unsigned: false
    window.num_max: 5
    jscan.sess_applet_act.sig_trusted: pass
    file.destructive.state: disabled
    jscan.sess_applet_act.block_all: false
    window.num_limited: true
    jscan.sess_applet_act.unsigned: instrument
    mmc.sess_pe_act.action: validate
    jscan.session.daemon_protocol: http
    file.read.state: disabled
    mmc.sess_pe_act.block_invalid: true
    mmc.sess_pe_act.block_blacklisted: false
    net.bind_enable: false
    jscan.session.policyname: TU1DIERlZmF1bHQgUG9saWN5
    mmc.sess_cab_act.block_unsigned: false
    file.nondestructive.state: disabled
    jscan.session.origin_uri: http://download.oracle.com/otn/utilities_drivers/jdbc/111070/ojdbc6.jar
    mmc.sess_cab_act.action: validate
    net.connect_other: false
    jscan.session.user_ipaddr: 10.10.0.110
    jscan.sess_applet_act.sig_invalid: block
    mmc.sess_cab_act.block_invalid: true
    thread.thread_num_max: 8
    jscan.sess_applet_act.sig_blacklisted: block
    net.connect_src: true
    thread.thread_num_limited: true
    jscan.sess_applet_act.stub_out_blocked_applet: true
    mmc.sess_cab_act.block_blacklisted: true
    jscan.session.user_name: 10.10.0.110
    thread.threadgroup_create: false
    file.write.state: disabled
    -->> returning Frame NULL
    BaseDialog: owner frame is a java.awt.Frame
    Why is the driver initializing an applet? What should I change?
    I am using JDK 1.6 and driver 11g Release 1 (11.1.0.7.0) - ojdbc6.jar, database is Oracle 9i (9.2.0.7.0).
    Below is my code.
    import java.sql.*;
    public class Test {
    public static void main(String args[]) {
    try{
    Class.forName("oracle.jdbc.driver.OracleDriver");
    Connection conn = DriverManager.getConnection(
    "jdbc:oracle:thin:@DBNAME:1521:DBNAME", "user", "password");
    Statement stmt = conn.createStatement();
    ResultSet rset = stmt
    .executeQuery("select 'Hello '||USER||'.' from dual");
    while (rset.next())
    System.out.println(rset.getString(1));
    rset.close();
    stmt.close();
    conn.close();
    } catch (Exception e) {
    System.out.println(e.getMessage());
    }

    This is a console software. The code above is only an example but it causes the same effect.
    The program behavior is the same whether I start it from Eclipse (normal or debug) or from command line.
    I think the case is our company IWSVA internet scanner, a kind of firewall.
    I found on google few similar problems with IWSVA or IWSS but with no solution.
    Already our administrators are checking the configuration.
    +When I allow permissions then program continues ok, when i disallow then an exception is thrown: Exception in thread "main" com.trend.iwss.jscan.runtime.AppletTrapStopError: Applet disabled by IWSVA Javascan site policy+

  • IE4 and Oracle JDBC

    Hi,
    I downloaded and installed Oracles JDBC drivers and tested
    them out using the sample programs that Oracle provided. Though
    the application I was able to connect and retrieve some rows
    without any problem. I then modefied the Java source for the
    applet and ran it through Sun's Appletviewer and was able to
    retrieve rows. I then tried to run the same applet through IE4
    and the applet started okay but I recieved the following:
    Loading JDBC driver oracle.jdbc.driver.OracleDriver
    Connecting to SMORA1
    cannot access "<This was my Oracle host name>"
    I'm running the applet of my PC and trying to connect to the
    Oracle host. I think I may of just answered my own question.
    But why would it work with Appletviewer??
    Thanks
    Dave
    null

    Dave:
    I am facing the same problem but not getting any answer. Could
    you let me know what solution did you implement to get it going.
    Thanks in advance,
    Raj.
    David Staelens (guest) wrote:
    : Hi,
    : I downloaded and installed Oracles JDBC drivers and tested
    : them out using the sample programs that Oracle provided.
    Though
    : the application I was able to connect and retrieve some rows
    : without any problem. I then modefied the Java source for the
    : applet and ran it through Sun's Appletviewer and was able to
    : retrieve rows. I then tried to run the same applet through
    IE4
    : and the applet started okay but I recieved the following:
    : Loading JDBC driver oracle.jdbc.driver.OracleDriver
    : Connecting to SMORA1
    : cannot access "<This was my Oracle host name>"
    : I'm running the applet of my PC and trying to connect to the
    : Oracle host. I think I may of just answered my own question.
    : But why would it work with Appletviewer??
    : Thanks
    : Dave
    null

  • Difference Between Applet and Swing

    Difference Between Applet and Swing

    The advantages and disadvantages of both applets and Swing are the small fluffy elephants you get inside of every box. They're quite well trained and can skeletonize your neighbors' annoying pets upon command.

  • Best IDE and how-to create HTML for a swing Applet

    Can you help me out? I've been using, and teaching with the old Symantec VisualCafe product from long, long, ago. It still works fine & I can even use it to build JFC/Swing Applets etc. But a few things have occurred. For one, a way back, Symantec sold VisualCafe to WEBGAIN - who now has gone out of business and sold it to a company called TOGETHERSOFT - who doesn't support it any longer.
    This isn't really a big deal to me, because I can still build and deploy applets that are pre-swing easily enough. (as can my students)
    HOWEVER... I'd like to be running with the LATEST Java (I think it's 1.4.01) and I'd LIKE to use whatever is the best development environment I can use - especially one I can recommend to my students. Do you know what that should be?
    What's more, I'd still like to take some JFC/Swing created applets (even if compiled with the older VisualCafe IDE) and generate the HTML to allow 1.4 enabled browsers to run them (this is the case for the schools versions of Explorer and Netscape). Now, the HTML I have INSTALLED for the students used the HTML converter - back in 1.2 to produce the HTML at the bottom of this. This code no longer works now with current browsers. Do you know HOW one makes a jfc/swing compiled applet run on the latest browsers?
    Any help or direction you can give would be appreciated.
    thanks,
    Bobby Berns
    [email protected]
    <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    WIDTH = 756 HEIGHT = 396 codebase="http://java.sun.com/products/plugin/1.2/jinstall-12-win32.cab#Version=1,2,0,0">
    <PARAM NAME = CODE VALUE = "lottery.class" >
    <PARAM NAME="type" VALUE="application/x-java-applet;version=1.2">
    <COMMENT>
    <EMBED type="application/x-java-applet;version=1.2" java_CODE = "lottery.class" WIDTH = 756 HEIGHT = 396 pluginspage="http://java.sun.com/products/plugin/1.2/plugin-install.html"><NOEMBED></COMMENT>
    </NOEMBED></EMBED>
    </OBJECT>
    <!--
    <APPLET CODE = "lottery.class" WIDTH = 756 HEIGHT = 396 >
    </APPLET>
    -->
    <!--"END_CONVERTED_APPLET"-->

    Bobby,
    It's been a while since I've used the HTML Converter, but if I had to guess I'd say you need a newer version than what you have. Also, doesn't the converter allow you to choose which JDK you want to use (in which case you could select 1.4)? Again it's been a while so bear with me. Another option would be to put all the Swing classes into a .jar file (typically called swingall.jar) on your server and include that file as an attribute in your applet tag like this:
    <APPLET CODE="yourApplet.class" ARCHIVE="swingall.jar">
    This way you don't have to use the Java Plug-in, however the initial download time of the .jar file can be significant.
    As for an IDE, I've always been happy using a text editor like UltraEdit. However, I've heard good things about Forte, and hey, it's free!
    Regarding Christina's post, that solution will only work if the Applet does not use Swing components (and Bobby specifically said it does). By using the <OBJECT> and <EMBED> tags, rather than the <APPLET> tag, you force the browser to use the Java Plug-in (rather than the browser's default JVM).
    Hope that helps,
    - Sheepy

  • Is there any incompatibility in using different JDBC and Oracle database versions?

    Hi everybody,
    I hope you can answer me ASAP.
    Which version of JDBC driver for Oracle could I use to access an Oracle database version 8.0.4.3.0 running on a SUN machine?
    Is it necessary to use the specific driver concerning to that version or could we use the JDBC version 8.1.6?
    If we decide to use JDBC 8.1.6 to work against the 8.0.4.3.0 database, will we find any incompatibility or problem?
    Thanks.
    null

    I don't know the answer to your question, but while looking for something else, I found a table listing "requirements and compatibilities for oracle jdbc drivers" that might answer your question:
    http://technet.oracle.com/docs/products/oracle8i/doc_library/817_doc/java.817/a83724/getsta1.htm#1008206
    (My aologies if that URL gets broken apart by this posting software and you have to piece it together.)
    Hope this helps.

  • Oracle JDBC Driver 10.1.0.4.0 and IndexOutOfBounds-Exception

    Hello all,
    we´ve experienced a weird problem using the Oracle JDBC driver version 10.1.0.4.0. While executing SELECT statement we get an ArrayIndexOutOfBounds exception from the JDBC driver. Here´s the stacktrace:
    java.lang.ArrayIndexOutOfBoundsException
    at java.lang.System.arraycopy(Native Method)
    at oracle.jdbc.driver.T4CDateAccessor.saveDataFromOldDefineBuffers(T4CDateAccessor.java:212)
    at oracle.jdbc.driver.T4CPreparedStatement.saveDefineBuffersIfRequired(T4CPreparedStatement.java:405)
    at oracle.jdbc.driver.OracleStatement.prepareAccessors(OracleStatement.java:859)
    at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:949)
    at oracle.jdbc.driver.T4CPreparedStatement.execute_maybe_describe(T4CPreparedStatement.java:532)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1037)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2905)
    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:2946)
    at weblogic.jdbc.wrapper.PreparedStatement.executeQuery(PreparedStatement.java:124)
    We couldn´t find anything on the web on this error. We´re using Weblogic 8.1 SP4 with JDBC version. Does anyone have a hint or an idea what could be the problem here?
    Thanks for any help in advance!
    Cheers,
    Joerg

    I may have a related bug, I get a similiar exception when running JIRA...
    java.lang.ArrayIndexOutOfBoundsException: -1
    at oracle.jdbc.driver.DateTimeCommonAccessor.computeJulianDay(DateTimeCommonAccessor.java:341)
    at oracle.jdbc.driver.DateTimeCommonAccessor.getMillis(DateTimeCommonAccessor.java:386)
    at oracle.jdbc.driver.DateAccessor.getTimestamp(DateAccessor.java:142)
    at oracle.jdbc.driver.OracleResultSetImpl.getTimestamp(OracleResultSetImpl.java:1018)...I tried the 10.1.0.2 and 10.1.0.4 drivers, both throw the same exception. I would try the 10.2 drivers, but they just hang! Gotta love Oracle QA!

Maybe you are looking for

  • Export to Word and Compression

    I get the idea of exporting a pages document to Word.I understand the best option is to export as PDF but my wife has complained that she can't re edit the text in Word at her Office . Some in the Forums suggest using Neo Office.Suggestions please. A

  • Is it possible to recover an original pdf document from a modified version??

    I received a court document in pdf thats internal content was modified, is it in anyway possible to recover the original from the modified version?

  • Need Fm/BAPI to change Actual GR date(WADAT_IST_LA) in inbound delivery

    Hi , Need a function module/BAPi to change the Actual Goods Receipt date for inbound delivery . Any suggestion would be appreciated . Have tried with WS_DELIVERY_UPDATE and BAPI_INB_DELIVERY_CHANGE . Am I missing something here ? Regds, Sanjeev

  • Hierachical Prompts - Retrieve Entire LOV

    Hi, After looking through the various SAP documents and playing with the RESTful web services API, it seems that you cannot retrieve the entire hierarchy without making a substantial number of calls. Is it possible to retrieve the entire hierarchy in

  • New phone and no In Case of Emergency (ICE) feature

    Just upgraded from the Pantech Breakout to the Razr M and there is no ICE feature in the contact list. I thought this was now standard on all phones? Has this been removed in Android 4.1?