• Post Reply Bookmark Topic Watch Topic
  • New Topic

JDBC connection error  RSS feed

 
veena bijur
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


OUTPUT

E:\JAVA_PROGRAMS\Class_work\JDBC>set classpath=C:\oraclexe\app\oracle\product\10
.2.0\server\jdbc\lib\ojdbc14.jar;.

E:\JAVA_PROGRAMS\Class_work\JDBC>javac Prg1.java

E:\JAVA_PROGRAMS\Class_work\JDBC>java Main
java.sql.SQLException: No suitable driver found for jdbcralce:thin:@localhost:
1521:XE
at java.sql.DriverManager.getConnection(DriverManager.java:604)
at java.sql.DriverManager.getConnection(DriverManager.java:221)
at Main.main(Prg1.java:11)

E:\JAVA_PROGRAMS\Class_work\JDBC>


Please tell me what is the error.
THanks in advance



 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16057
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You made a typo here:

"jdbc:oralce:thin:@localhost:1521:XE"

Should be oracle instead of oralce.
 
veena bijur
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks so much. Next time i will be aware of it.
Now its working.


Thanks again
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!