Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Lionel Bar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • 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
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65335
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • 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
  • 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
Author and ninkuma
Marshal
Pie
Posts: 65335
97
IntelliJ IDE Java jQuery Mac Mac OS X
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic