Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

jdbc-odbc

ResultSet: Exception: set type is TYPE_FORWARD_ONLY — why?

April 8, 2024 by Tarik

Change your first statement to this pstat=con.prepareStatement(“select typeid from users where username=? and password=?”, ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE); This way you can move forward and backward, so less things to worry about

Categories java Tags java, jdbc-odbc, resultset, sql Leave a comment

java.lang.ClassNotFoundException: sun.jdbc.odbc.JdbcOdbcDriver Exception occurring. Why?

September 13, 2023 by Tarik

For Java 7 you can simply omit the Class.forName() statement as it is not really required. For Java 8 you cannot use the JDBC-ODBC Bridge because it has been removed. You will need to use something like UCanAccess instead. For more information, see Manipulating an Access database from Java without ODBC

Categories java Tags java, jdbc, jdbc-odbc, ms-access Leave a comment

Removal of JDBC ODBC bridge in java 8

August 30, 2023 by Tarik

We can still use JDBC-ODBC Bridge in java 8 too, just follow this simple recipe: Download a JDK 7 or JRE 7. Goto JRE\lib folder and find the rt.jar Unzip it (if you have WinRAR or 7zip installed) or you can rename it to rt.zip and unzip it. Copy sun\jdbc and sun\security\action folders out, keep … Read more

Categories java Tags java, java-8, jdbc-odbc Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa