ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Carpenter <timbeau...@yahoo.co.uk>
Subject Problems getting ant working - libjava.so
Date Thu, 25 Mar 2004 20:37:24 GMT
Hi,

I am new to ant and have been having a few problems which I am sure are down
to my config/impl and not ant, but I just want to eliminate unknowns.

% ant -f jboss-build.xml compile

gives:

expr: syntax error
Error: can't find libjava.so.
%

This is on OSX.3.3 with the following environment:

ANT_HOME=/Developer/Java/J2EE/apache-ant-1.5.3
JAVA_HOME=/Developer/Java/J2SE/jdk1.3.1_02
J2EE_HOME=/Developer/Java/J2EE/j2sdkee1.3.1
PATH=/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/Developer/Java/J2SE/jdk
1.3.1_02:/Developer/Java/J2EE/j2sdkee1.3.1:/Developer/Java/J2EE/apache-ant-1
.5.3/bin

I have tried to use Fink to reinstall which gives only ant 1.5.1 and it
failed in bootstrap with what is clearly a Java path issue (see BOOTSTRAP
BUILD ERROR below) and Fink then went on to what appears to be getting a
binary version (see WHAT FOLLOWED in FINK below) but just left a single bz2
file! I have downloaded the 1.6.1 binaries version of ant, but I get the
same original error as 1.5.3 so I have reverted to using 1.5.3 which came
with Apple.

Can I confirm that this is the JAVA_HOME/J2EE_HOME path issue? (if anyone
can resolve this too, I'd be very grateful)

Thanks in advance
Tim

>>>+++BOOTSTRAP BUILD ERROR

Created dir: /sw/src/ant-1.5.1-1/jakarta-ant-1.5.1/build/lib
Compiling 163 source files to
/sw/src/ant-1.5.1-1/jakarta-ant-1.5.1/build/classes
/sw/src/ant-1.5.1-1/jakarta-ant-1.5.1/src/main/org/apache/tools/ant/taskdefs
/optional/Javah.java:349: cannot resolve symbol
symbol  : constructor Main (java.lang.String[])
location: class com.sun.tools.javah.Main
                = new com.sun.tools.javah.Main(cmd.getArguments());
                  ^
/sw/src/ant-1.5.1-1/jakarta-ant-1.5.1/src/main/org/apache/tools/ant/taskdefs
/optional/Javah.java:350: cannot resolve symbol
symbol  : method run ()
location: class com.sun.tools.javah.Main
            main.run();
                ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -deprecation for details.
2 errors

BUILD FAILED

>>>---BOOTSTRAP BUILD ERROR
>>>+++WHAT FOLLOWED in FINK
rm -rf /sw/src/root-ant-1.5.1-1
mkdir -p /sw/src/root-ant-1.5.1-1/sw
mkdir -p /sw/src/root-ant-1.5.1-1/DEBIAN
/var/tmp/tmp.1.zgY3Mg
cp: ant: No such file or directory
chmod: /sw/src/root-ant-1.5.1-1/sw/lib/ant: No such file or directory
rm: /sw/src/root-ant-1.5.1-1/sw/lib/ant/bin/*.bat: No such file or directory
install -d -m 755 /sw/src/root-ant-1.5.1-1/sw/share/doc/ant
install -c -p -m 644 lib/README
/sw/src/root-ant-1.5.1-1/sw/share/doc/ant/README.lib
install -c -p -m 644 KEYS LICENSE README WHATSNEW
/sw/src/root-ant-1.5.1-1/sw/share/doc/ant/
install -d -m 755 /sw/src/root-ant-1.5.1-1/sw/etc/profile.d
echo "setenv ANT_HOME '/sw/lib/ant'" >>
/sw/src/root-ant-1.5.1-1/sw/etc/profile.d/ant.csh.env
echo "export ANT_HOME='/sw/lib/ant'" >>
/sw/src/root-ant-1.5.1-1/sw/etc/profile.d/ant.sh.env
echo "setenv JAVA_HOME '/Library/Java/Home'" >>
/sw/src/root-ant-1.5.1-1/sw/etc/profile.d/ant.csh.env
echo "export JAVA_HOME='/Library/Java/Home'" >>
/sw/src/root-ant-1.5.1-1/sw/etc/profile.d/ant.sh.env
touch /sw/src/root-ant-1.5.1-1/sw/etc/profile.d/ant.csh
touch /sw/src/root-ant-1.5.1-1/sw/etc/profile.d/ant.sh
cat /sw/src/root-ant-1.5.1-1/sw/etc/profile.d/ant.csh >>
/sw/src/root-ant-1.5.1-1/sw/etc/profile.d/ant.csh.env
cat /sw/src/root-ant-1.5.1-1/sw/etc/profile.d/ant.sh >>
/sw/src/root-ant-1.5.1-1/sw/etc/profile.d/ant.sh.env
mv -f /sw/src/root-ant-1.5.1-1/sw/etc/profile.d/ant.csh.env
/sw/src/root-ant-1.5.1-1/sw/etc/profile.d/ant.csh
mv -f /sw/src/root-ant-1.5.1-1/sw/etc/profile.d/ant.sh.env
/sw/src/root-ant-1.5.1-1/sw/etc/profile.d/ant.sh
chmod 755 /sw/src/root-ant-1.5.1-1/sw/etc/profile.d/ant.*
rm -f /sw/src/root-ant-1.5.1-1/sw/info/dir
/sw/src/root-ant-1.5.1-1/sw/info/dir.old
/sw/src/root-ant-1.5.1-1/sw/share/info/dir
/sw/src/root-ant-1.5.1-1/sw/share/info/dir.old
rm -rf ant-1.5.1-1
Writing control file...
Finding prebound objects...
Writing dependencies...
mkdir -p /sw/fink/dists/stable/main/binary-darwin-powerpc/devel
dpkg-deb -b root-ant-1.5.1-1
/sw/fink/dists/stable/main/binary-darwin-powerpc/devel
dpkg-deb: building package `ant' in
`/sw/fink/dists/stable/main/binary-darwin-powerpc/devel/ant_1.5.1-1_darwin-p
owerpc.deb'.
ln -sf 
/sw/fink/dists/stable/main/binary-darwin-powerpc/devel/ant_1.5.1-1_darwin-po
werpc.deb /sw/fink/debs/
rm -rf /sw/src/root-ant-1.5.1-1
dpkg -i 
/sw/fink/dists/stable/main/binary-darwin-powerpc/devel/ant_1.5.1-1_darwin-po
werpc.deb
Selecting previously deselected package ant.
(Reading database ... 3927 files and directories currently installed.)
Unpacking ant (from .../ant_1.5.1-1_darwin-powerpc.deb) ...
Setting up ant (1.5.1-1) ...

>>>---WHAT FOLLOWED in FINK


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message