Not get ans properly

Not get ans properly

I create db on my system using MS-acess,then I create DSN for program but I still not get answer It throws an Exception "java.lang.classNotFoundException",what is this I don't get plz help me.

View Answers

September 6, 2011 at 11:05 AM

Create DSN connection:

1. Open Data Sources (Start->Control Panel->Administrative Tool->Data Sources(ODBC)
2. Open User DSN tab
3. Add a user DSN
4. Select Microsoft Access Driver(*.mdb)
5. Select database name and Create the DSN name (e.g emp)
6. Click "Ok" and then compile the following java code.

import java.sql.*;

public class CreateTable {
  public static void main(String[] args) throws Exception {
    Connection conn = DriverManager.getConnection("jdbc:odbc:student");
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Statement st = conn.createStatement();
    st.executeUpdate("create table employee (empid int,empname varchar(30));");
    System.out.println("Table is created successfully!");
    st.executeUpdate("insert into employee (empid,empname ) values (1,'Roseindia')");
    System.out.println("Data is inserted successfully!");
    st.close();
    conn.close();
  }
}

September 10, 2011 at 1:04 PM

Yes sir I have done it & it compiled properly but when i run it Eception is come(java.lang.ClassNotFoundException:jdbc.odbc.JdbcOdbcDriver) what is this?I dont get plz tell me.


September 11, 2011 at 6:41 PM

Yes sir i got answer thank u very much

Ads









Related Tutorials/Questions & Answers:
Not get ans properly
Not get ans properly  I create db on my system using MS-acess,then I create DSN for program but I still not get answer It throws an Exception "java.lang.classNotFoundException",what is this I don't get plz help me.   
how to display jsp page containing mysql query in particular division using ajax ?my code is below bt i cundt get it properly
ajax ?my code is below bt i cundt get it properly   index.html <...; } } } request.open("GET", "newjsp.jsp", true); // Create a function...; } } } request.open("GET", "newjsp.jsp", true
Advertisements
ModuleNotFoundError: No module named 'ans-python'
ModuleNotFoundError: No module named 'ans-python'  Hi, My Python... 'ans-python' How to remove the ModuleNotFoundError: No module named 'ans... have to install padas library. You can install ans-python python
ModuleNotFoundError: No module named 'ans-python'
ModuleNotFoundError: No module named 'ans-python'  Hi, My Python... 'ans-python' How to remove the ModuleNotFoundError: No module named 'ans... have to install padas library. You can install ans-python python
ModuleNotFoundError: No module named 'ans-python'
ModuleNotFoundError: No module named 'ans-python'  Hi, My Python... 'ans-python' How to remove the ModuleNotFoundError: No module named 'ans... have to install padas library. You can install ans-python python
Why are my variables not dividing properly?
Why are my variables not dividing properly?  Why are my variables not dividing properly
get
get ( ) Method in PHP  what is get method in PHP   Please visit the following link: http://www.roseindia.net/php/php-Get-Post.shtml
implement internationlism in Flemish ans Spanish using Sturts1.1
implement internationlism in Flemish ans Spanish using Sturts1.1  HI - we are using struts1.1, we have a requirement to implement internationlism in Flemish ans Spanish. Will this be supported in Struts1.1? How to resolve
ModuleNotFoundError: No module named 'properly-model-python'
ModuleNotFoundError: No module named 'properly-model-python'  Hi...: No module named 'properly-model-python' How to remove the ModuleNotFoundError: No module named 'properly-model-python' error? Thanks   Hi
ModuleNotFoundError: No module named 'properly-util-python'
ModuleNotFoundError: No module named 'properly-util-python'  Hi...: No module named 'properly-util-python' How to remove the ModuleNotFoundError: No module named 'properly-util-python' error? Thanks   Hi
ans plz
having problem with menu ans sub menu items css ...plz help!!
having problem with menu ans sub menu items css ...plz help!!  PLZ help ...this is my html menu > <div id="content"> <div > class="navigation" id="nav"> > <div class="item user"> >
code not working properly
get and post
get and post  what is php and get   PHP get and post method
servlet not working properly ...pls help me out....its really urgent
servlet not working properly ...pls help me out....its really urgent  Hi, Below is the front page of my project 1)enty.jsp </form> <...;html> <body> > > <form method="post" action="get"> >
get method
get method   how to use get method: secure method is post method and most of use post method why use a get method
post get
post get  what is post and get
get Blob
get Blob   how i can display a Blob in XHTML (i developpe with hbernate
Requirements for JSF to get started
Requirements for JSF to get started  What are the requirements for JSF to get started
Get the error messages displayed
Get the error messages displayed  How to get the error messages displayed
get absolute time java
get absolute time java  How to get absolute time in java
advantages of get method?
advantages of get method?  php in what is advatages of get methods and how you can use get methods
Hibernate get
In this section, you will learn about get method of Hibernate
property in javascript get set
property in javascript get set  How to create the get and set property in JavaScript?   Creating Get and Set properties in JavaScript example.. myVar Sample = { nval : "", get get() { return this.nval; }, set
post ,get data in the database
post ,get data in the database  post ,get data in the database  Please visit the following links: PHP get post data PHP Tutorials
Get image color
Get image color  How to get image color in iPhone SDK application
java get file permission
java get file permission  How to check the get file permission in Java
Get GMT from IP
Get GMT from IP  How do I get GMT value from IP address?? Thanx in Adv
ModuleNotFoundError: No module named 'by_get'
ModuleNotFoundError: No module named 'by_get'  Hi, My Python... 'by_get' How to remove the ModuleNotFoundError: No module named 'by_get'... to install padas library. You can install by_get python with following command
ModuleNotFoundError: No module named 'get'
ModuleNotFoundError: No module named 'get'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'get' How to remove the ModuleNotFoundError: No module named 'get' error
ModuleNotFoundError: No module named 'get'
ModuleNotFoundError: No module named 'get'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'get' How to remove the ModuleNotFoundError: No module named 'get' error

Ads