• 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
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!