aspose file tools*
The moose likes Servlets and the fly likes Problem with import statement Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Problem with import statement" Watch "Problem with import statement" New topic
Author

Problem with import statement

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
I have a (Shop)Bean file saved and compiled in
E:\servlets\jswdk-1.0.1\examples\WEB-INF\jsp\beans\shopping\CD.class
I have my servlet(SS) which uses this bean file in
E:\servlets\jswdk-1.0.1\examples\WEB-INF\servlets
In my servlet I say
import shopping.Beanfile
I get an error when I compile my servlet
SS.java:5: Class shopping.shop not found in import.
import shopping.CD;
^
1 error
What does this mean what is the mistake I am making???
Srividya Shiv
Ranch Hand

Joined: Jul 20, 2000
Posts: 31
Try setting the classpath to where ur bean classes are located
 
wood burning stoves
 
subject: Problem with import statement