jsp - Microsoft Access 2007 connectivity in java 8 -



jsp - Microsoft Access 2007 connectivity in java 8 -

this question has reply here:

manipulating access database java without odbc 1 reply

i want connect database msaccess 2007 using java, hear jdbc bridge removed java 8.

please guide me problem in next code.

import java.sql.*; public class userlogin { public static void main(string[] args) { seek { class.forname("sun.jdbc.odbc.jdbcodbcdriver"); // c:\\databasefilename.accdb" - location of database string url = "jdbc:odbc:driver={microsoft access driver (*.mdb, *.accdb)};dbq=" + "c:\\users\\shakir\\documents\\netbeansprojects\\userlogin\\me.accdb"; // specify url, username, pasword - create sure these valid connection conn = drivermanager.getconnection(url); system.out.println("connection succesfull"); } grab (exception e) { system.err.println("got exception! "); system.err.println(e.getmessage()); } } }

i hear jdbc bridge removed java 8.

please guide me problem in next code

the problem precisely jdbc-odbc bridge has been removed java 8, code trying utilize feature not available. consider approach instead:

manipulating access database java without odbc

java jsp jdbc ms-access-2007 java-8

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -