File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with import statement

 
Anonymous
Ranch Hand
Posts: 18944
  • 0
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 31
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try setting the classpath to where ur bean classes are located
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic