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

class path problem in package

jawwad ahmed
Ranch Hand

Joined: Dec 01, 2001
Posts: 179
Well i saved class file in the
i set path
set classpath=c:\tomcat2\lib\servlet.jar
whan i make pakage pk and saved in classes folder
can anybody please tell the classpath of it.
Matthew X. Brown
Ranch Hand

Joined: Nov 08, 2000
Posts: 165
Use folder notation for your package.
Like this - if i'm referencing the package
then all of my classes go here. Also-you put your .class files there-not your .java files. They need to be compiled already. Also-don't worry about jarring a file and putting it under the lib directory- these classes under the classes directory will be picked up the webserver automatically.
I agree. Here's the link:
subject: class path problem in package
It's not a secret anymore!