Hello, I’m using MyEclipse 8.6.
I’m developing web project on Tomcat 7 and try to use Datasource of tomcat-jdbc.jar.
however, when coding, following error is displayed.
The import org.apache.tomcat cannot be resolved.
I set Server to Tomcat7 and set path (MyEclipse->Preference->Servers->Tomcat->Tomcat7 direcotry to location where tomcat7 installed)
right click on myweb project->properties->Run/Debug Settings->Tomcat 7.x
I thought tomcat-jdbc.jar is already in tomcat’s lib directory(Tomcat 7.0/lib), MyEclipse will pick up tomcat-jdbc’s classes automatically, however it still display error(unresolved)
1)i tried to “append classpath” in tomcat 7.0 path (MyEclipse->preference->servers->Tomcat7.x ->path->) -> still error
2) i tried add tomcat-jdbc.jar using “add library” in buildpath –>it’s working, but, war file has tomcat-jdbc.jar file…
is there a proper way to use tomcat’s jar libarary, but not include in war file because it’s already in tomcat’s lib directory?
(just refer class)