Make sure you can run 'ant -version', and also try:

export JAVA_HOME=/home/neale/icedtea6-1.4.1/bootstrap/jdk1.6.0
ant -version

If that doesn't work, then you need to track that down.

I usually download my own ant 1.7.0 in my home directory and use that.
I've had problems with the ant's placed in /usr/bin or /usr/local/bin,
I think the ant startup script gets confused sometimes when it doesn't
live in it's own 'home' location.

-kto

Neale Ferguson wrote:
After upgrading make from 3.80 to 3.81, my build of icedtea6-1.4.1 is
progressing. It runs for a number of hours, completes building in
openjdk-ecj and appears to start building within openjdk where it comes to a
halt with:

make[2]: Entering directory
`/home/neale/icedtea6-1.4.1/openjdk/langtools/make'
JAVA_HOME=/home/neale/icedtea6-1.4.1/bootstrap/jdk1.6.0
ANT_OPTS=-Djava.io.tmpdir='/home/neale/icedtea6-1.4.1/openjdk/control/build/
linux-s390x/langtools/build/ant-tmp' ant -diagnostics >
/home/neale/icedtea6-1.4.1/openjdk/control/build/linux-s390x/langtools/build
/ant-diagnostics.log
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/tools/ant/launch/Launcher
Caused by: java.lang.ClassNotFoundException:
org.apache.tools.ant.launch.Launcher
        at java.net.URLClassLoader$2.run(URLClassLoader.java:217)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:206)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
Could not find the main class: org.apache.tools.ant.launch.Launcher. Program
will exit.

The difference is now JAVA_HOME is being specified. Obviously it can¹t find
the ant jar which is lurking in /usr/share/java. So what configuration piece
have I missed so that it knows where to look?

Neale


Reply via email to