Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes JDBC and Relational Databases and the fly likes java.sql.SQLException: Invalid URL: Driver type not specified Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "java.sql.SQLException: Invalid URL: Driver type not specified" Watch "java.sql.SQLException: Invalid URL: Driver type not specified" New topic
Author

java.sql.SQLException: Invalid URL: Driver type not specified

Ashutosh Arya
Ranch Hand

Joined: Oct 07, 2008
Posts: 69
Hi I am trying to connect to database using properties file:



But getting java.sql.SQLException: Invalid URL: Driver type not specified error.

Our server is iPlanet 6.

Please guide that what can be the problem?

Thanks in advance

Aashu
Steven Schwab
Greenhorn

Joined: May 25, 2010
Posts: 9
Assuming you are using Oracle, your connection url is incorrect.

Please see http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq.html#05_03 as well as the question below it for how you need to form the connection url.
 
Have you tried LearnNowOnline? http://www.learnnowonline.com/
 
subject: java.sql.SQLException: Invalid URL: Driver type not specified