How to register jdbc Driver in Applet

Dear Sir,
i am running a applet through jsp
i am using following softwares
jakarta-tomcat-4.1.10
mysql 3.23.52-max
jsp
j2sdk1.3.1
Linux 7.3
Netscape 4.*
the problem is when i am trying to load the applet in jsp
<jsp:plugin type="applet" code="XX" width="XX" height="XX">
</jsp:plugin>
it gives following message
the page contains information of type
(application/x-java-applet;jpi-version=1.4) that can we viewer with
appropriate Plug-in , so i am using applet tag
but it is running fine in browser if i give .html extension
the other problem is , my normal jsp are running and getting connected to Mysql
but when i use applet it is giving error ClassNot Found Error, i have included jar
file mysql-connector-java-3.0.1-beta in my class path
do i have to install the jar file on the client m/c as applet runs on client m/c
how to register driver in Applet
thank you
sunil

I'm not sure about the jsp page thing but to get your mysql working in the applete what you need to do is in the <Applete> tag where you have archive=myclass.jar add this to it archive="myclass.jar, mysql-connector-java-3.0.1-beta.jar"
make sure the mysql...jar is in the same dir as your jar file and the database server is on the same machine. It won't let you connect from an applete to a database that's on a diffrent machine. You'll get an access denied error.
For the jsp page try putting your class as the code="my.class" and add archive="same stuff to fix <Applete>"
that might work.
Hope I gave you enough info to get you on the right track.
Matt S.

Similar Messages

  • How to register jdbc driver in java application

    Using Java Studio Enterprise:
    1. Add mssqlserver.jar to Libraries.
    2. jar contains package: com.microsoft.jdbc.sqlserver,
    package contains SQLServerDriver.class
    Trying to register this driver in program with:
    Class.forName("com.microsoft.jdbc.SQLServerDriver");
    raises exception ClassNotFoundException
    Maybe I should put mssqlserver.jar to specific folder?
    For web application using same driver works fine.

    hi,
    Class.forName("com.microsoft.jdbc.SQLServerDriver");
    raises exception ClassNotFoundExceptionFirst you check weather these jar files is in your lib <folder>
    msbase.jar,mssqlserver.jar,msutil.jar
    if no, copy that files and try it,

  • How to delete a registered jdbc driver

    I configured a third party jdbc driver but it's wrong. I tried to remove it but I can't find any way to do so. can any body tell me how to remove a defined jdbc driver(not remove a connection.) thanks.

    Registered third-party JDBC drivers can be deleted or edited by opening the 'Preferences' dialog (select the 'Preferences' menu item from the 'Tools' menu) and selecting the 'Database Connections' item on the left-hand tree. The resulting panel has a list of the registered drivers; select the one you wish to delete and click the 'Delete' button.
    - John McGinnis
    Oracle JDeveloper Team

  • Need Help On How to Install JDBC Driver

    I've downloaded the JDBC driver and set the CLASSPATH environmental variable to the .jar file that is the same one I downloaded that is in the oracle folder. (not sure why I have to download it again) But, there are no other instructions on installation. I also tried copying the jdbc folder I downloaded to replace the one within the oracle folder and that didn't work either. If I type "import oracle." etc in netbeans it does not recognize the class / package. I can't be sure what the installation process is.
    I can't find clear instructions on installing JDBC other than the readme which says all you have to do is set the CLASSPATH, but it doesn't even mention what to do with the files you download. I found a developers reference that says all the things to check to make sure it installed correctly, but that is after the fact and I don't know how to get there.
    Thank you

    I already have the CLASSPATH set in the system environmental variables for ojdbc6.jar and orai18n.jar and it does not work.
    '.;C:\Program Files\Java\jre1.6.0_06\lib\ext\QTJava.zip;C:\app\0\product\11.1.0\db_1\jdbc\lib\ojdbc6.jar;C:\app\0\product\11.1.0\db_1\jlib\orai18n.jar"
    Also, I'd rather not have to run a TCP/IP listener so the OCI based JDBC driver would be preferred. Do I need to the OCI and the OCI based JDBC? (I read there is a difference) If so, could somebody give me the URL's because I can't find them.
    I find this very confusing. I found the page for JDBC, but that takes me to the JDBC page with many downloads and then they are all thin versions. So at the bottom it has a small link for "platform specific JDBC-OCI libraries See the instant client" so I click on the "instant client" (whatever that is) but that just has a download link for a zip file that has a readme with nothing other than a timestamp and a useless header with no information. This is just taking me in circles.
    What I want to do is start programming java in netbeans using JDBC. Thanks.

  • How to use JDBC driver (type 4) with struts?????

    Hi! have a nice day!!!!!
    i want to connect database use struts with JDBC driver type 4. i must add <data-source/> to <data-sources></data-sources> tag but i don't know how to use <data-source/> with it's properties. please tell me! thank very much

    thank for reply!!! :D
    my project require to use struts 1.2.8 with ODBC (i think so it's type 1) for connect to database (SQL server). i think so it has two step :
    1. edit file struts-config.xml with <data-sources> tag.
    2. programming in file java (which extends from Action class) connect to database.
    but how to programming in file java??? (i think so must use objects DataSource & Connection)

  • How to add JDBC Driver to my CLASSPATH

    Hi~
    I use MySQL JDBC Driver in my program like that
    Class.forName("com.mysql.jdbc.Driver");But when I try to run it, I got a ClassNoFound Exception,I hava add mysql-connector-java-5.0.3-bin.jar into my CLASSPATH, but it no use.How to fix it ?
    Thanks for your time~ ^_^

    Here's my code, Thank you very much. But I suggest that,you'd better write your own code to test it. Hehe,thanks~~
    import java.sql.*;
    import java.util.*;
    import java.io.*;
    public class DBTest {
         private static Connection getConnection(String url, String username, String password)
              throws SQLException, IOException{
                   try{
                        Class.forName("com.mysql.jdbc.Driver");
                   }catch(ClassNotFoundException e){
                        e.printStackTrace();
              return DriverManager.getConnection(url, username, password);
         private static void runTest(){
              Scanner stdin = new Scanner(System.in);
              String serverUrl, username, password;
              serverUrl = "jdbc:mysql://localhost:3306/test";;
              username = stdin.nextLine();
              password = stdin.nextLine();
              Connection conn =null;
              try{
                   conn = getConnection(serverUrl, username, password);
              }catch(SQLException e){
                   e.printStackTrace();
              }catch(IOException e){
                   e.printStackTrace();
              }finally{
              try{
                   Statement stat;
                   if(conn != null){
                         stat = conn.createStatement();
                         stat.executeUpdate("CREATE TABLE Greetings (Message VARCHAR(20))");
                         stat.executeUpdate("INSERT INTO Greetings VALUES('Hello mysql')");
                         ResultSet result = stat.executeQuery("SELECT * FROM Greetings");
                         result.next();
                         System.out.println(result.getString(1));
                   //      stat.executeUpdate("DROP TABLE Greetings");
              }catch(SQLException e){
                   e.printStackTrace();
              }finally{
                   try{
                        if(conn != null)
                             conn.close();
                   }catch(SQLException e){
                        e.printStackTrace();
         public static void main(String args[]){
              runTest();          
    }

  • Dynamically loading and registering JDBC driver from an archive (zip - jar)

    I'm programming an JDBC driver tester.
    I have to load dynamically any driver from an archive (jar or zip) after the user uploaded it.
    I think i did it well with my ClassLoader, i can get an instance of the driver and use any method like (getMinorVersion()) but when i registering it fail.
    There is no error but the driver is not registered.
    I rode the DriverManager log (with his logwriter) and he says :
    skipping: driver[className=oracle.jdbc.driver.OracleDriver,oracle.jdbc.driver.OracleDriver@5439fe]
    skipping: driver[className=oracle.jdbc.driver.OracleDriver,oracle.jdbc.driver.OracleDriver@2b7db1]
    (two times, it looks curious isn't it ?)
    This is a part of my code :
    Driver pilote = (Driver)Class.forName(driverClass.getName(), true,this).newInstance();
    System.out.println("Minor Version = "+ pilote.getMinorVersion());
    PrintWriter printwriter = new PrintWriter(new OutputStreamWriter(System.out));
    DriverManager.setLogWriter(printwriter);
    DriverManager.registerDriver(pilote);
    System.out.println("Driver registered\n");

    I have made a simple test :
    public static void main(String[] param)
    System.out.println("Loading Driver from JAR ...");
    try
    File jar = new File("c://mbm//drivers//oracle.jar");
    URL aurl[] = {jar.toURL()};
    URLClassLoader urlclassloader = new URLClassLoader(aurl, ClassLoader.getSystemClassLoader());
    Class.forName("oracle.jdbc.driver.OracleDriver", true, urlclassloader);
    PrintWriter printwriter = new PrintWriter(new OutputStreamWriter(System.out));
    DriverManager.setLogWriter(printwriter);
    Enumeration listDriver = DriverManager.getDrivers();
    System.out.println("[---------Drivers-----------]");
    while (listDriver.hasMoreElements())
    Driver driver = (Driver) listDriver.nextElement();
    System.out.println("->> "+driver.getClass().getName());
    catch (MalformedURLException e)
    e.printStackTrace();
    catch (ClassNotFoundException e)
    e.printStackTrace();
    This displays that :
    Loading Driver from JAR ...
    skipping: driver[className=oracle.jdbc.driver.OracleDriver,oracle.jdbc.driver.OracleDriver@9ec21d67]
    [---------Drivers-----------]
    D:\www\tomcat\webapps\mbm\WEB-INF\classes>
    I think there is in this case only one instance

  • How to add JDBC driver?

    HI,
    I am using JDeveloper 9.0.5.2, the available jdbc driver database connection is thin and oci8, how can I add more driver availbe? Since oci8 using ocijdbc9, but I have installed Oracle client 10g which comes with the 10g driver.
    Thanks a lot.

    Select Tools>Project Properties and add the driver jar file in the Paths>Additional Classpaths field.
    thanks,
    Deepak

  • How to load jdbc driver?

    I don't really understand the tutorial when it says to download a driver.
    (I use mySql)
    http://java.sun.com/docs/books/tutorial/jdbc/basics/connecting.html
    That really doesnt describe it well, since i really am new to JDBC.
    What do i need to do in order to make the "driver" work with mysql databases?
    What about other databases, such as oracle?

    What do i need to do in order to make the "driver" work with mysql databases?
    What about other databases, such as oracle? For any database you want to use, the driver needs to be accessible in your classpath/buildpath
    and what do i need to import?You need to import java.sql.*;
    In standard java code there are two important lines to get the connection
    String jdbcDriverClass = "com.myql.jdbc.Driver";
    String url = "jdbc:mysql://localhost:3306/myDatabase"
    String userName = "username";
    String password = "password"
    Class.forName(jdbcDriverClass);
    Connection con = DriverManager.getConnection(url, userName, password);The DriverClass name is different for every database
    The url connection is different for every database. For Oracle there are even two different connection strings you can use, depending upon whether you want to use their "thin" driver or the "oci" driver.
    Both the driver class name, and the URL connection string will be available from the documentation with the JDBC driver.
    Cheers,
    evnafets

  • Problem registering jdbc driver in jar

    My java oracle program runs fine as a class.
    (java myclass)
    But when I run the program as an executable jar (java -jar myclass.jar), a statement like
    Class.forName("oracle.jdbc.driver.
    OracleDriver"); throws the ClassDefNotFound exception, in other words it can not find and load the driver class !
    Any solutions ?
    Thanks

    I had the same issue, as a work around I included classes12.zip (in my case) in a sub directory from my application /jdbc. Then added the following line to the manifest
    Class-Path: jdbc/classes12.zip
    Hope this helps

  • How to install JDBC Driver for Oracle 8.0.4 on NT ????

    in the download package I get 2 zip and 2 dll Files but no description where to copy them.

    I found it! :)

  • Deploy JDBC driver for SQL server 2005 on PI 7.1

    How to deploy JDBC driver for SQL server 2005 on PI 7.1
    We are in SAP NetWeaver 7.1 Oracle 10G
    Third party system is  SQL server 2005
    There are different JDBC versions are available to download for SQL server 2005.
    I am not sure about the applicable version for the PI 7.1 SP level. Again JMS Adapter needs to be deploy along with this.
    Please help

    Hi,
    Hope this How to Guide help you.
    How To Install and Configure External Drivers for the JDBC & JMS Adapters from
    www.sdn.sap.com/irj/sdn/howtoguides
    Regards,
    Karthick.
    Edited by: Karthick Srinivasan on Apr 13, 2009 4:07 PM

  • Deploying JDBC driver for SQL Server 2005 on PI 7.1

    How to Deploy JDBC driver for SQL Server 2005 on PI 7.1 on Windows 2003 server
    We are in NW PI 7.1 and third party db is sql server 05.
    Found How-to Guide SAP NetWeaver u201804 but unable to find for NW PI 7.1
    Can any one help me on this? (looking for guide step by step procedure)
    Regards
    Mahesh

    Hi,
    Check these:
    Re: Installing JDBC Drivers for PI 7.1
    how to deploy MS Sql Server 2005 and 2008 jdbc driver
    Mention of a SAP Note in the first link or refer this note [831162|https://service.sap.com/sap/support/notes/831162]
    Regards,
    Abhishek.

  • How to install JDBC for Oracle 8.0.5

    Dear Friends,
    I am quite troubled in how to install JDBC Driver for Oracle 8.0.5 in Turbo Linux 7.0.
    I have got the file jdbc8052-sol.zip(class102.zip,class111.zip & liboci805jdbc.so), and extracted them into the /usr/lib.
    Setup the CLASSPATH and execute the ldconfig command, but the ldconfig is not executed well. Errors is :
    following "/usr/lib/liboci805jdbc.so" is not a shared object file.
    What should I do can setup the JDBC? Help!
    If you can, my friends, please answer here or write to me : [email protected]
    Jacky.
    Feb 4. 2002

    Dear Amardeep,
    The OP opened 2 threads, one how to clone and other one how to rename a database 8. The article I send show how to clone the DB (one of the steps in the clone article is how to rename the DB from"PROD" to "Test"). ;)
    This is the other thread:
    easy way to clone database
    Cheers,
    Francisco Munoz Alvarez
    www.oraclenz.com

  • How to register a new list of JDBC driver to ODI?

    Hi Guys,
    How to register a new list of JDBC driver to appear on ODI?
    exam :
    When I defined a new master repository that resides on MSSQL 2005
    I already had sqljdbc.jar (This is mssql2005 jdbc driver) on the ..\oracledi\drivers
    But when I browsed jdbc driver list it will not appear any new driver we just put them in the driver folder.
    I knew this is a common issue.
    So I need to manually define a driver class and url to match exactly with the jdbc document say for sqljdbc.jar
    which is
    Driver Class : com.microsoft.sqlserver.jdbc.SQLServerDriver
    URL : jdbc:sqlserver://localhost:1084
    I think that the driver list will have to store in somewhere in the xml files OR some records on the master repository database.
    But where ?
    Because I saw the new list driver (Microsoft SQL Server 2005 driver for JDBC) on the vmware image that I had (actually it is ODI Training workshop VMware Image).
    But I don't know where to looks.
    Here are some proof that they actually appear in the driver list
    [Original MSSQL 2000 Driver List|http://img.ihere.org/uploads/1f6d1601bb.png]
    [New MSSQL 2005 Driver List|http://img.ihere.org/uploads/94cc91e1ac.png]
    How comes?
    Thank you in advance.
    Somchai
    Edited by: somchai on Feb 12, 2009 8:24 AM

    Hi CTS !
    Then, its impossible add new drivers into ODI ? So, if I need to add a driver and this exist in Oracle list drivers, what can I do in this case ?
    I have problems with Oracle JDBC driver in ODI. When I try generate web services the "Not suitable driver" message is shown. In Design, module part, when i generate web service i have the "*name of data source*" field and I put into "oracle.jdbc.driver.OracleDriver". Ok, this isn&acute;t a correct sintax, then I read in this manual "*note that the name of the data source must be consistent with the entries in context.xml and web.xml, prefixed with:java:/comp/env/*".
    Ok, In other post (Re: Not found web.xml and content.xml files into ODI folders
    you said me only necessary to change the web.xml and context.xml is only necessary if I use Tomcat. Then, how to discover a correct sintax to put into this field and generate my web service ?
    Best regards,
    Joao.
    Edited by: JohnnyBeGood on 16/02/2009 09:00
    Edited by: JohnnyBeGood on 16/02/2009 09:29

Maybe you are looking for

  • Problem deleting photos

    I can not delete photos from my pictures. I have tried several times. With tapping the picture and then hitting the delete button, but nothing happens. Does anyone have an idea. Thank you

  • Unable to extend table in tablespace

    Hi, I have a Oracle Database 11g Release 11.1.0.6.0 - 64bit Production With the Real Application Clusters option. I'm receiving the unable to extend table T_DATA in tablespace USER I'm using ASM. This is the situation of datafiles of USER tablespace

  • Is missing oratab file causing this issue?

    OS Version : AIX 5.3 DB Version : 10g Release 2 I've just finished installing Oracle 10g R2 software(without a starter database). I want to create a database using a CREATE DATABASE script.But when i tried to log in as SYS i got the following error S

  • How to display Xml in a JEditorPane(in an applet)

    Hi All, I have an applet and i want to display xml in a JEditorPane in an applet. This xml document has a xsl attached to it for transformation. How can i do the transformation?? Help or sample code or link to a sample code is highly appreciated!!!!

  • Photoshop CS4 Zoom and Full Screen problems

    At certain zoom percentages, my art looks fuzzy.  What could be causing this?  It looks like I need to Threshold the art, but if I tap the Zoom Tool on the page it clears up and looks like it's supposed to.  It usually looks fuzzy after I've zoomed u