• Post Reply Bookmark Topic Watch Topic
  • New Topic

package,classpath and servlet

 
John Kilbourne
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to call a class (RecordObj) that in turn calls another class (DBConnector) from my getPost() method in my servlet. I placed the two subordinate classes in a package in the directory holding my servlet class. This is my directory structure (Windows NT):
jswdk-1.0.1\examples\WEB-INF\servlets\Record
My servlet is in servlets\. The compiler will not compile my servlet because it cannot find the other two classes. It *can* find and compile the two subordinate classes with no problem though.
I've changed my CLASSPATH to point to servlets\ and ., and I tried putting all three classes together in the \servlets directory, removing their package declarations, but nothing so far seems to help.
 
John Kilbourne
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I solved it by putting a jar file into jre/lib/ext.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!