File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes Exception - To connect  excel  sheet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Exception - To connect  excel  sheet" Watch "Exception - To connect  excel  sheet" New topic

Exception - To connect excel sheet

bala kumar

Joined: Sep 13, 2007
Posts: 10
i got the following error when i get the data from XL sheet to store the data into oracle db in LINUX .

String path = "/home/nfsmnt/resource_uploads/web_links/"+fileName;
connection = DriverManager.getConnection("jdbcdbcriver={Microsoft Excel Driver (*.xls)};DBQ="+path+";DriverID=22;READONLY=false","","");
Statement stmt = connection.createStatement();


java.lang.NullPointerException at sun.jdbc.odbc.JdbcOdbcDriver.initialize( at sun.jdbc.odbc.JdbcOdbcDriver.connect( at java.sql.DriverManager.getConnection( at java.sql.DriverManager.getConnection( at com.thomsonhighereducation.DAO.ResourceOrderDAO.addWeblinkData( at
I agree. Here's the link:
subject: Exception - To connect excel sheet
It's not a secret anymore!