Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 417337

Summary: [java overlay] dev-java/gluegen-2.0_rc8 - Cause: the class org.apache.tools.ant.taskdefs.optional.Javah was not found.
Product: Gentoo Linux Reporter: Qingping Hou <dave2008713>
Component: [OLD] JavaAssignee: Java team <java>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build log
emerge --info =dev-java/gluegen-2.0_rc8
emerge -pqv =dev-java/gluegen-2.0_rc8

Description Qingping Hou 2012-05-24 05:54:58 UTC
Created attachment 312915 [details]
build log

Always reproducible: Yes
How to reproduce: emerge dev-java/gluegen


When I try to emerge dev-java/gluegen, I got following error:

BUILD FAILED
/var/tmp/portage/dev-java/gluegen-2.0_rc8/work/gluegen-v2.0-rc8/make/build.xml:396: The following error occurred while executing this line:
/var/tmp/portage/dev-java/gluegen-2.0_rc8/work/gluegen-v2.0-rc8/make/build.xml:403: Problem: failed to create task or type javah
Cause: the class org.apache.tools.ant.taskdefs.optional.Javah was not found.
        This looks like one of Ant's optional components.
Action: Check that the appropriate optional JAR exists in
        -/usr/share/ant-core/lib
        -/root/.ant/lib
        -a directory added on the command line with the -lib argument

Do not panic, this is a common problem.
The commonest cause is a missing JAR.

This is not a bug; it is a configuration problem
Comment 1 Qingping Hou 2012-05-24 05:55:46 UTC
Created attachment 312917 [details]
emerge --info =dev-java/gluegen-2.0_rc8
Comment 2 Qingping Hou 2012-05-24 05:56:24 UTC
Created attachment 312919 [details]
emerge -pqv =dev-java/gluegen-2.0_rc8
Comment 3 Ralph Sennhauser (RETIRED) gentoo-dev 2012-05-24 17:42:41 UTC
That's due to Ant before 1.8.2 additionally needing ant-nodeps. Fixed, thanks for the report.
Comment 4 Qingping Hou 2012-05-24 17:58:37 UTC
WOW, that's fast, thank you :)