connectivity problem
i am facing error in Class.for name statement please help me correct it
the error is ""java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver""
i am using this with netbeans since i have gain connectivity still i am facing this error*
================================oracle connectivity program============================
import java.sql.*;
import java.util.*;
class Test
{
static
{
try{
Class.forName("oracle.jdbc.OracleDriver");
}
catch(Exception err)
{
System.out.println("error..........."+err);
}
}
public static void main(String []args)
{
try{
Scanner s=new Scanner(System.in);
System.out.println("enter ename");
String ename=s.next();
System.out.println("enter eid");
String eid=s.next();
Connection con=DriverManager.getConnection("jdbc:oracle:thin:@127.0.0.1:1521:XE","HR","HR");
PreparedStatement st=con.prepareStatement("update t1 set ename=? where eid=?");
st.setString(1,ename);
st.setString(2,eid);
st.executeUpdate();
System.out.println("record updated");
}
catch(Exception err)
{
System.out.println(err);
}
}
}
View Answers
Ads
Related Tutorials/Questions & Answers:
connectivity problem
connectivity problem i am facing error in Class.for name statement...
connectivity still i am facing this error*
================================oracle
connectivity program============================
import java.sql.*;
import
oracle connectivity problem with netbeans
oracle
connectivity problem with netbeans sir I am using oracle.... for this after adding new driver(ojdbc6.jar) in services tab I got
connectivity with oracle... of simple
connectivity with oracle in this I am giving driver details
Advertisements
database connectivity problem
database
connectivity problem what if client dont have database with them then what is other way to run successfully our programm
Please visit the following link:
http://www.roseindia.net/jdbc
jdbc oracle connectivity problem
jdbc oracle
connectivity problem Hi All,
I am trying to connect my swing application to oracle DB . but class.forname is giving error. Please suggest me if there is some different way to connect swing application to oracle
java servlet connectivity problem with access
java servlet
connectivity problem with access Import java.sql
javax.servlet
//all packages entered
try {
Class.forName...=con.createStatement();
^
i am confused what is the
problem
database connectivity
database connectivity how to create database
connectivity between HTML and sql server2005
connectivity with php
connectivity with php i have make one html form and doing
connectivity with php database but when i click on submit button on html form display all coding in php form about
connectivity instead of adding data, i used in html
JDBC CONNECTIVITY
execution finished."""""")
what may the
problem?
Java Mysql
connectivity
Other JDBC Tutorials
java connectivity
java connectivity hi........
Can u help me to do
connectivity between java and weka???????
weka is a data mining tool which allows to do prediction, classification etc....
i want to do
connectivity between weka and java can u
connectivity with access
connectivity with access how to connect with data base with access sheet. in my application form there is two JTextArea and Two JComboBox.
Is this Access database or excel sheet. Do you want to display the values
connectivity with mysql
connectivity with mysql if this code of roseindia doesnt work,then what to do..cant connect with my sql
http://www.roseindia.net/tutorial/php/phpdatabase/Check-PHP-MySQL-Connectivity.html
Please visit the following
java connectivity
java connectivity i am trying to add dyanamic rows in the jsp page, when i add the new row the dropdown control value is not coming from database..please help me to overcome this
problem
connectivity step
connectivity step sir.pls give me step one by one for connect the java program to oracle.
Follow these steps:
1) Import the following packages in your java file:***
import java.sql.*;
import oracle.jdbc.driver.
Oracle Database connectivity probem
Oracle Database
connectivity probem hi
Below is the code of oracle database
connectivity, when i compile it, it will show the error... am trying to solve the
problem from last three to four week but still not success
database connectivity using mysql
database
connectivity using mysql java file: eg1.java
package eg;
import java.sql.*;
public class eg1
{
public static void main(String arg......... please check it and tell me what is the
problem
jdbc connectivity to mysql tutorial
jdbc
connectivity to mysql tutorial here is complete jdbc
connectivity to mysql tutorial for newbies. Person who don't even know how to install mysql and don't know about which driver to use can do with ease
j2me mysql connectivity
j2me mysql connectivity I do a project on reservation using j2me. I need a
connectivity to a MYSQL database.
How do I do this
Thanks and regards
Karthiga
problem in onlinetest...
problem in onlinetest... hi,
my code getting the
problem is ,when user leave a question then the server puts error...
pls help me
Servlet problem
connectivity code it works but
problem is with servlet page.
My servlet code...Servlet problem Hello,
I am very shocked about this mysterious
problem from last three month and now i hope rose india developers