Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] can't emerge dev-java/saxpath - BUILD FAILED
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
phajdan.jr
Retired Dev
Retired Dev


Joined: 23 Mar 2006
Posts: 1777
Location: Poland

PostPosted: Fri Apr 14, 2006 3:18 pm    Post subject: [solved] can't emerge dev-java/saxpath - BUILD FAILED Reply with quote

Should I do something to fix that or is it a bug?

Code:

>>> emerge (1 of 56) dev-java/saxpath-1.0 to /

...

compile:
    [javac] Compiling 15 source files to /var/tmp/portage/saxpath-1.0/work/saxpath-1.0-FCS/build/classes
    [javac] This version of java does not support the classic compiler; upgrading to modern

...

compile-test:
    [javac] Compiling 5 source files to /var/tmp/portage/saxpath-1.0/work/saxpath-1.0-FCS/build/classes
    [javac] This version of java does not support the classic compiler; upgrading to modern

test:
    [mkdir] Created dir: /var/tmp/portage/saxpath-1.0/work/saxpath-1.0-FCS/build/test-results

BUILD FAILED
/var/tmp/portage/saxpath-1.0/work/saxpath-1.0-FCS/build.xml:402: Could not create task or type of type: junit.

Ant could not find the task or a class this task relies upon.

This is common and has a number of causes; the usual
solutions are to read the manual pages then download and
install needed JAR files, or fix the build file:
 - You have misspelt 'junit'.
   Fix: check your spelling.
 - The task needs an external JAR file to execute
     and this is not found at the right place in the classpath.
   Fix: check the documentation for dependencies.
   Fix: declare the task.
 - The task is an Ant optional task and the JAR file and/or libraries
     implementing the functionality were not found at the time you
     yourself built your installation of Ant from the Ant sources.
   Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the
     task and make sure it contains more than merely a META-INF/MANIFEST.MF.
     If all it contains is the manifest, then rebuild Ant with the needed
     libraries present in ${ant.home}/lib/optional/ , or alternatively,
     download a pre-built release version from apache.org
 - The build file was written for a later version of Ant
   Fix: upgrade to at least the latest release version of Ant
 - The task is not an Ant core or optional task
     and needs to be declared using <taskdef>.
 - You are attempting to use a task defined using
    <presetdef> or <macrodef> but have spelt wrong or not
   defined it at the point of use

Remember that for JAR files to be visible to Ant tasks implemented
in ANT_HOME/lib, the files must be in the same directory or on the
classpath

Please neither file bug reports on this problem, nor email the
Ant mailing lists, until all of these causes have been explored,
as this is not an Ant bug.

Total time: 6 seconds


Code:

$ java-config -v
java version "1.4.2-03"
Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.4.2-03)
Java HotSpot(TM) 64-Bit Server VM (build Blackdown-1.4.2-03, mixed mode)


Last edited by phajdan.jr on Sat Apr 15, 2006 8:24 am; edited 1 time in total
Back to top
View user's profile Send private message
phajdan.jr
Retired Dev
Retired Dev


Joined: 23 Mar 2006
Posts: 1777
Location: Poland

PostPosted: Sat Apr 15, 2006 8:24 am    Post subject: Reply with quote

Interesting... After re-emerging packages in differrent order (I was emerging netbeans) the problem disappeared. Could that be caused by some bad dependencies? Or maybe portage doesn't evaluate them correctly?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum