On 2015-05-18, Robert Heller heller@deepsoft.com wrote:
When I compile some Java code I am getting this sort of error:
"package org.apache.http.annotation does not exist"
I am presuming that I am missing a Jar file in /usr/lib/jvm/java-1.6.0-openjdk.x86_64.
The core JAR files are placed there. Third-party ones such as those from the Apache projects go in /usr/share/java.
Most of the Jar files in /usr/lib/jvm/java-1.6.0-openjdk.x86_64 come from one or another RPMs, most from the CentOS 5 distro RPMs. But I cannot figure out which RPM(s) I am missing. I tried doing a web search for org.apache.http.annotation with el5 and rpm, but got nothing useful. What am I missing?
Which classes are you looking for? Some classes in the jakarta-commons-httpclient rpm package match the above Java package name, but they might not be what you want.