Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

package does not exists error

 
rameshmca rk
Greenhorn
Posts: 17
  • 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
Posts: 15281
39
Android IntelliJ IDE Java Scala Spring
  • 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
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic