• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Response-SetContentType

 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
All ,
I am trying to run the Servlet code to down load the JAR , programme given in HFSJ-Chapter 4 , page 129 .

Where do I have to put the /bookCode.jar ? I keep getting the error that bookCode.jar is not found.

I am using Tomcat 6.0.14 .

Thanks
Akhil
 
Ranch Hand
Posts: 893
Tomcat Server Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Jar files are normally stored in de WEB-INF/lib directory in the webapplication.
 
Akhil Maharaj
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I just realized that the file needs to be in the root of the web-application as it is given as /bookCode.jar .

Now the code is working . However the size of the file , that I am downloading is 10.2MB where as size of the original source file is 86KB .
I don't understand why it is more after downloading ?

Thanks
Akhil
 
Without subsidies, chem-ag food costs four times more than organic. Or this tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic