File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

package does not exists error

 
rameshmca rk
Greenhorn
Posts: 17
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
When I tried for compiling servlet,that has a POJO(model) creation in its code,I got "package does not exists" error for the POJO even though I gave the import statement.Also I have specified the classpath for the POJO.How can I resolve this problem?

Thank and regards,
Ramesh RK
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Pie
Posts: 15150
31
Android IntelliJ IDE Java Scala Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This error can only mean one (or more) of these problems:

1. You did not import the package correctly.
2. The package is not on the classpath correctly while compiling.
3. The directory structure does not match the full package name.
4. The package statement in the POJO class is not correct.

Check all these things.
 
Animesh Saxena
Ranch Hand
Posts: 62
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try giving the classpath while compiling. Also the only possible error can be directory strucuture.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic