File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes servlet utilities Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlet utilities" Watch "servlet utilities" New topic

servlet utilities

jesse harris
Ranch Hand

Joined: Oct 02, 2000
Posts: 62
I am running jswdk and am trying to use a simple program to auto generate the doctype and title of the html to be generated. But each time i try to compile my servlets the compiler tells me it cannot find my utilities class, but I can see it there and I compileded it before I tried to compile my servlet.
my servlets and the utility prog are in package coreservlets and directory servlets/coreservlets. Do I need to point the compiler to the utility? or restart something? please, any help appreciated.
Carl Trusiak

Joined: Jun 13, 2000
Posts: 3340
To use a class from a package, The class must exist in a directory structure under the current working directory or under a path in your classpath. In your example, servlets should be the current working directory. The source files would both be in servlets/coreservlets To compile them the command line would be
javac coreservlets/
javac coreservlets/
Hope this helps

I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
I agree. Here's the link:
subject: servlet utilities
It's not a secret anymore!