• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

blocked at connecting database

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello every one, like said i m a new java user, and i need to connect an access data base to my project using netbeans 8.2.
i know that oracl blocked the access, do i downloaded ucanaccess 2.0.9 still didnt work.
si i would like to ask if anyone can help please??
here is my code:
PS:(the println its just to test where it blocks)

 
 
Rancher
Posts: 4116
47
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First off, remove that line (Class.forName).
1.  That is not the JDBC driver for UCanAccess.
2.  I'm fairly sure the latest version of UCanAccess doesn't requre that in order to load the driver.

The other thing to say is, don't leave your catch blocks empty like that.
At the very least put in an "e.printStackTrace()" call.
I suspect you would then have seen the exception being thrown by the line I've suggested you delete.
 
Sheriff
Posts: 6029
157
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch, marck tibo!

Thanks for using code tags.  You didn't get it quite right, though.  The code block should be completely surrounded by the tags.   I fixed it for you this time.  Please review how to UseCodeTags (that's a link).
 
marck tibo
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks,for the both of you guys
that helped alooooot
best wishes and thanks again
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!