• Post Reply Bookmark Topic Watch Topic
  • New Topic

No Suitable Driver when running J2EE

 
Matthew Roth
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I try to run a Entity bean connecting to Access using the JdbcOdbcDriver bridge I get an Error No suitable driver found. I have added the sun.jdbc.odbc.JdbcOdbcDriver in the config/default.properties file. I have set the J2EE_CLASSPATH to c:\j2sdkee1.2.1\lib\system. I have also included the rt.jar file in this folder. Is there any thing that I'm missing? I know the bean works because I copied it from the examples. Any help would be greatly appreciated. I've spent the last three days trying to figure this out trying everything I can think of.
Thanks
Matt
 
Sergei Voropay
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Put both tools.jar and rt.jar directly in you classpath. Putting just the directory path with the jars is not gonna cut it. Build your classpath like this:
set classpath=%classpath%;%j2ee_home%\lib\j2ee.jar;%java_home%\lib\tools.jar;%java_home%\lib\rt.jar;.
, where java_home is your jdk directory.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!