Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Netbeans classpath problem

 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm developing a servlet application with Netbeans 3.2.2. The servlet is accessing a mysql database.
My problem is, whenever I execute the application I get an SQLException telling me there is no suitable driver for the database.
My code is fine because I've used it outside netbeans to access the same database with the mysql driver jar included in the system classpath.
I assume that netbeans can't find the mysql driver jar file. I've mounted it as a filesystem in netbeans which I assumed was all I needed to do. I've also put it in the following places without joy:
j2se/lib
j2re/lib
system classpath (Netbeans ignores this anyway)
I'm using the built-in tomcat with netbeans, and have included it in the lib directory of the web applcation, but the same error occurs.
Any help gratefully appreciated.
Richard
 
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
j2sdk1.4.0_01\jre\lib\ext
 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I faced simillar problem with netbeans 5.0 will loading mysql jdbc driver

i tried following steps and it worked

step 1: copied mysql-connector-java-3.1.13-bin-g.jar to <netbeans-home>\enterprise2\jakarta-tomcat-5.5.9\common\lib

step 2: start netbeans ide

step 3: clicked window > runtime > databases > drivers

step 4: right clicked on driver and select "add driver..."

step 5: click add and choose mysql-connector-java-3.1.13-bin-g.jar from <netbeans-home>\enterprise2\jakarta-tomcat-5.5.9\common\lib

step 6: Click Ok and clean, build and redeploy
    Bookmark Topic Watch Topic
  • New Topic