aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "class path problem in package" Watch "class path problem in package" New topic
Author

class path problem in package

jawwad ahmed
Ranch Hand

Joined: Dec 01, 2001
Posts: 179
Well i saved class file in the
c:\tomcat2\webapps\examples\web-inf\classes\filename.java
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 com.sun.java.help.search package
D:\tomcat\webapps\examples\web-inf\classes\com\sun\java\help\search\
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.
 
jQuery in Action, 2nd edition
 
subject: class path problem in package