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

ConnectionPool not found

 
satya sahu
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
In one program i am importing javaservlets.jdbc.ConnectionPool package. While compiling the program is giving error stating the package not available. I am using J2sdk 1.4 and oracle 8 personal edition in windows 98. Can anybody tell me what i have to do to solve this problem. Thanks in advance.
 
Amol Desai
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
You need to have javaservlets.jdbc.ConnectionPool class in your classpath. If the jar file contains that class, place the jar file in your classpath
-Amol
 
satya sahu
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do i set that classpath??
 
Rangarajan Suresh
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by satya sahu:
How do i set that classpath??

You can put the compiled class (with the package structure) in your
webapplication's WEB-INF\classes folder.
i.e put your ConnectionPool class in, %YOURAPPHOME%\WEB-INF\classes\servlets\jdbc\
where YOURAPPHOME is the your web application directory
 
Rangarajan Suresh
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by satya sahu:
How do i set that classpath??

You can put the compiled class (with the package structure) in your
webapplication's WEB-INF\classes folder.
i.e put your ConnectionPool class in, %YOURAPPHOME%\WEB-INF\classes\servlets\jdbc\
where YOURAPPHOME is the your web application directory
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic