This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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.
 
wood burning stoves
 
subject: class path problem in package
 
Similar Threads
package class path problem
I need to set the classpath
how to make war file
'javax.servlet . * package does not exist !'
Run Time error