Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Driver not Found

 
lucas
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I am connecting to MYSQL server through Jbuilder. When I am trying to establish a database connection in Jbuilder, I am getting an error "THE URL: jdbc:jdbc:microsoft:sqlserver not found. check for misspellings and that the right driver is not present on the classpath.
I refernced the .jar files in the classpath and also include the jar files in the web-inf directory of webapps of jbuilder.

Can anybody please provide me with a solution.

Thanks,
 
Felipe Walker
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if you are connecting to MYSQL use
jdbc:mysql name of database or path to database)
examples
String url="jdbc:mysql://localhost:3306/database";
String url = "jdbc:mysql://localhost/test";
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34179
340
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"user new",
We're pleased to have you here with us in the JDBC forum, but there are a few rules that need to be followed, and one is that proper names are required. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks,
Jeanne
Forum Bartender
 
lucas
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Felipe Walker,

Thanks a lot..I was able to connect to the database.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34179
340
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"user new",
The display name policy is not optional. Please update your display name.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic