Robert Heller
2015-May-18 15:47 UTC
[CentOS] Missing Java packages for java-1.6.0-openjdk under CentOS 5
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. 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? -- Robert Heller -- 978-544-6933 Deepwoods Software -- Custom Software Services http://www.deepsoft.com/ -- Linux Administration Services heller at deepsoft.com -- Webhosting Services
John R Pierce
2015-May-18 15:54 UTC
[CentOS] Missing Java packages for java-1.6.0-openjdk under CentOS 5
On 5/18/2015 8:47 AM, Robert Heller wrote:> When I compile some Java code I am getting this sort of error: > > "package org.apache.http.annotation does not exist"I suspect you need to get the jar file for org.apache.http and include it in your project. -- john r pierce, recycling bits in santa cruz
Liam O'Toole
2015-May-18 18:54 UTC
[CentOS] Missing Java packages for java-1.6.0-openjdk under CentOS 5
On 2015-05-18, Robert Heller <heller at 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. -- Liam
Apparently Analagous Threads
- CentOS 5.4 64-bit: Java web browser plugin for 64-bit FireFox?
- java-1.6.0-openjdk.x86_64 keeps clobbering logging.properties
- Can't get R to recognize Java for rJava installation
- GUI Front End for OpenLDAP admin (users & groups)
- Updated Spam Assassin for CentOS 5...