I have a dynamic web project that I am working on to migrate a jsp/servlet app from JRun to Tomcat.
I am getting the error:
com.ibm.ivj.eab.dab.DatastoreJDBC cannot be resolved to a type.
I have the
*.class files sitting inside a
com/ibm/ivj/eab/dab folder (exactly how I found them). I have tried creating a jar file and adding that to the build path via “Add External Jar”, I have also tried adding an “External Class Folder” and pointing to the folder that contains the “com” directory in question.
Still, the error persists. What is strange is if I start typing the package name eclipse actually auto-completes the class for me! (pictured below). Any ideas would be greatly appreciated. Maybe the classes were compiled for a much older java version and that is causing trouble? Maybe there is something I need to do to ensure the classes end up in the WEB-INF/lib directory?
Right click your project name.
Java Build Path.
Add Class Folder.
Then choose your class.
Add Jars should work although you claim that you attempted that.
Also, “have you tried turning it off and back on again”? (Restart Eclipse).