Win a copy of Terraform in Action this week in the Cloud forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

error: package org.apache.commons.beanutils does not exist

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
error: package org.apache.commons.beanutils does not exist

I'm working through the example code of chapter 4 of Core Servlets and JavaServer Pages (http://volume1.coreservlets.com/archive/Chapter4.html) and I get the above error when I try to compile the BeanUtilities.java file.
I've followed the instructions as per the manual, except adding the jar files to to tomcat_install_dir/lib instead of the older directory listed in the text; the classpath update seem to have gone through OK (looking at the output of the starttomcat script). I'm using tomcat 7 on fedora. Any advice?

Thanks
 
Sheriff
Posts: 67601
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch.

Adding files to the /lib folder is for run-time. At compile time, you still need to have the jars files in the compilation classpath.
 
Lionel Bar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Bear,
finally got this to compile - not sure why there's information that's not very well documented involved but I'll take it as a warning that I'll encounter more of the same if I try to use this stuff for actual development work (thankfully not something I'm yet committed to).
 
Bear Bibeault
Sheriff
Posts: 67601
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
 
reply
    Bookmark Topic Watch Topic
  • New Topic