Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HFSJ page 84 package com.example.model does not exist

 
Dishaan D Ahuja
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone please help me. I am new to Web Component Development. On page 84 of HFSJ when I am running compiling the servlet, the compiler is giving the error, package com.example.model does not exist. I have checked the directory structure too and the same is correct. I am using Tomcat5.0 and J2SDK1.5.

Thanks in advance

Dishaan
 
Jinesh Shah
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When u compile, include the complete path of your classes folder (under Beerv1) in the -calsspath option when u compile....so it will be:

-classpath <complete path of your classes folder, excuding the classes foldername>;..../servlet-api.jar
 
Dishaan D Ahuja
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have compiled exactly like the one suggested by you. I am getting same problem. The compiler is giving error package com.example.model does not exist.

I need your kind help to solve this problem.

Thanks in advance.

Regards,

Dishaan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic