Build failed...

View: New views
10 Messages — Rating Filter:   Alert me  

Build failed...

by lg3d :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi guys... I got this error while building lg3d with "ant":


Buildfile: build.xml

init-props:

setupSolarisx86:

setupLinuxx86:

setupLinuxx86_64:

setupWindows:

doesX11Exist:

setupXPropsIfXExists:

setupXPropsForNoX:

setupPlatformProps:

BUILD FAILED
/home/raffo/projects/lg3d/lg3d-core/build.xml:109: Class org.apache.tools.ant.taskdefs.ConditionTask doesn't support the "else" attribute.

Total time: 1 second



what should I do??
[Message sent by forum member 'raffo' (raffo)]

http://forums.java.net/jive/thread.jspa?messageID=80417

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@...
For additional commands, e-mail: interest-help@...


Re: Build failed...

by lg3d :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Upgrade to ant 1.6.5
[Message sent by forum member 'paulby' (paulby)]

http://forums.java.net/jive/thread.jspa?messageID=80494

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@...
For additional commands, e-mail: interest-help@...


Re: Build failed...

by lg3d :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Upgraded, but I have still a problem:

Buildfile: build.xml

init-props:

setupSolarisx86:

setupLinuxx86:

setupLinuxx86_64:

setupWindows:

doesX11Exist:

setupXPropsIfXExists:

setupXPropsForNoX:

setupPlatform:
    [mkdir] Created dir: /home/raffo/projects/lg3d/lg3d-core/build/current/debug
     [echo] ostype = linux
     [echo] arch = i686
     [echo] build.platform.dir = /home/raffo/projects/lg3d/lg3d-core/build/curre nt/debug
     [echo] platform-supports-x = true
     [echo] build.x11 = true
     [echo] x11.source.dir = /home/raffo/projects/lg3d/lg3d-x11/linux/i686
     [echo] x11.dest.dir = /home/raffo/projects/lg3d/lg3d-core/ext/lg3d-x11/linu x/i686

init:
    [mkdir] Created dir: /home/raffo/projects/lg3d/lg3d-core/build/current/debug /classes

compile:
     [copy] Copying 1 file to /home/raffo/projects/lg3d/lg3d-core/src/classes/or g/jdesktop/lg3d/displayserver
    [javac] Compiling 679 source files to /home/raffo/projects/lg3d/lg3d-core/bu ild/current/debug/classes

init-props:

setupSolarisx86:

setupLinuxx86:

setupLinuxx86_64:

setupWindows:

doesX11Exist:

setupXPropsIfXExists:

setupXPropsForNoX:

setupPlatform:

init:

compile-x11:

check-escher:
    [javac] Compiling 44 source files to /home/raffo/projects/lg3d/lg3d-core/build/current/debug/classes

init-props:

setupSolarisx86:

setupLinuxx86:

setupLinuxx86_64:

setupWindows:

doesX11Exist:

setupXPropsIfXExists:

setupXPropsForNoX:

setupPlatform:

init:

init-x11:

x11-check-and-unpack:

x11-compatibility-test:

x11-compatibility-report:

unpack-x:
    [mkdir] Created dir: /home/raffo/projects/lg3d/lg3d-core/ext/lg3d-x11/linux/i686
    [untar] Expanding: /home/raffo/projects/lg3d/lg3d-x11/linux/i686/lg3d-x11.tar.gz into /home/raffo/projects/lg3d/lg3d-core/ext/lg3d-x11/linux/i686
     [echo] x11.lg3d.dir = /home/raffo/projects/lg3d/lg3d-core/ext/lg3d-x11/linux/i686/lg3d-x11
     [echo] x11.native.dir = /home/raffo/projects/lg3d/lg3d-core/src/native/org/jdesktop/lg3d/displayserver/fws/x11
     [echo] x11.cc = gcc
     [echo] x11.defines = -w -fPIC
     [echo] x11.includes = -I. -I/home/raffo/projects/lg3d/lg3d-core/ext/lg3d-x11/linux/i686/lg3d-x11/exports/include -I/opt/sun-jdk-1.5.0.03/jre/../include -I/opt/sun-jdk-1.5.0.03/jre/../include/linux
     [echo] x11.libs = -L/home/raffo/projects/lg3d/lg3d-core/ext/lg3d-x11/linux/i686/lg3d-x11/exports/lib -lX11 -lXext -lc
     [echo] x11.ldflags = -shared
     [echo] x11.dso.defines = -w -fPIC -D__linux__
     [echo] x11.dso.includes = -I. -I/home/raffo/projects/lg3d/lg3d-core/ext/lg3d-x11/linux/i686/lg3d-x11/include -I/opt/sun-jdk-1.5.0.03/jre/../include -I/opt/sun-jdk-1.5.0.03/jre/../include/linux
     [echo] x11.dso.libs = -L/opt/sun-jdk-1.5.0.03/jre/lib/i386 -ljawt -L/opt/sun-jdk-1.5.0.03/jre/lib/i386/server -ljvm
     [echo] x11.dso.ldflags = -shared -z lazyload

native-x11:

BUILD FAILED
/home/raffo/projects/lg3d/lg3d-core/build.xml:322: The following error occurred while executing this line:
/home/raffo/projects/lg3d/lg3d-core/build.xml:392: The following error occurred while executing this line:
/home/raffo/projects/lg3d/lg3d-core/build.xml:401: Could not create task or type of type: javah.

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 'javah'.
   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: 27 seconds


(I know it's late to reply, but I was so very busy for many days...)
[Message sent by forum member 'raffo' (raffo)]

http://forums.java.net/jive/thread.jspa?messageID=92661

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@...
For additional commands, e-mail: interest-help@...


Re: Build failed...

by lg3d :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi raffo,

> BUILD FAILED
...
> /home/raffo/projects/lg3d/lg3d-core/build.xml:401: Could not create task or type of type: javah.

Maybe your path is pointing to JRE, not JDK? (thus, javah is not reachable?)

hideya
[Message sent by forum member 'hideya' (hideya)]

http://forums.java.net/jive/thread.jspa?messageID=92708

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@...
For additional commands, e-mail: interest-help@...


Re: Build failed...

by lg3d :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This is what I've in my .bashrc file:

export JAVA_HOME=/opt/sun-jdk-1.5.0.03
export PATH=$JAVA_HOME/bin:$PATH
export ANT_HOME=/usr/share/ant-core
export PATH=$ANT_HOME/lib:$PATH
export OSTYPE="linux"


Maybe it's not right, but I can't understand where's the mistake...
[Message sent by forum member 'raffo' (raffo)]

http://forums.java.net/jive/thread.jspa?messageID=92843

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@...
For additional commands, e-mail: interest-help@...


Re: Build failed...

by lg3d :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Raffo,

Are you sure you are picking up the new 1.6.5 ant ? We don't use any special non-core ant features so I'm suspicious of the error message you are getting. Looks like something is down revved.

You .bashrc settings look fine.

Rgds

Paul
[Message sent by forum member 'paulby' (paulby)]

http://forums.java.net/jive/thread.jspa?messageID=92949

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@...
For additional commands, e-mail: interest-help@...


Re: Build failed...

by lg3d :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This is what portage says:

* dev-java/ant-core
     Available versions:  1.5.4-r2 1.6.2-r5 1.6.5-r2
     Installed:           1.6.5-r2
     Homepage:            http://ant.apache.org/
     Description:         Java-based build tool similar to 'make' that uses XML configuration files.

The version is right.
[Message sent by forum member 'raffo' (raffo)]

http://forums.java.net/jive/thread.jspa?messageID=93012

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@...
For additional commands, e-mail: interest-help@...


Re: Build failed...

by lg3d :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

what does 'ant -version' report ? This is the best indicator that you are picking up the correct version of the 3 you have installed.
[Message sent by forum member 'paulby' (paulby)]

http://forums.java.net/jive/thread.jspa?messageID=93060

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@...
For additional commands, e-mail: interest-help@...


Re: Build failed...

by lg3d :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The command reports this:

Apache Ant version 1.6.5 compiled on February 9 2006
[Message sent by forum member 'raffo' (raffo)]

http://forums.java.net/jive/thread.jspa?messageID=93089

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@...
For additional commands, e-mail: interest-help@...


Re: Build failed...

by lg3d :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Solved problem in Debian  etch:
    [b]sudo apt-get ant-optional[/b]
[Message sent by forum member 'shellenstein' (shellenstein)]

http://forums.java.net/jive/thread.jspa?messageID=284321

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@...
For additional commands, e-mail: interest-help@...