File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Problem with import statement" Watch "Problem with import statement" New topic

Problem with import statement

Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
I have a (Shop)Bean file saved and compiled in
I have my servlet(SS) which uses this bean file in
In my servlet I say
import shopping.Beanfile
I get an error when I compile my servlet Class 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
I agree. Here's the link:
subject: Problem with import statement
It's not a secret anymore!