1826464 Members
3106 Online
109692 Solutions
New Discussion

Problems with ant

 
JASH_2
Trusted Contributor

Problems with ant

$ ant runSimulator
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Launcher

I am getting the above message when trying to run ant.

I am on 11.11 with java1.4

Obviously it is a parameter error, but I cannot find which one.

.profile is:-
$ cat .profile

# @(#)B.11.11_LR

# Default user .profile file (/usr/bin/sh initialization).

# Set up the terminal:
if [ "$TERM" = "" ]
then
eval ` tset -s -Q -m ':?hp' `
else
eval ` tset -s -Q `
fi
stty erase "^H" kill "^U" intr "^C" eof "^D"
stty hupcl ixon ixoff
tabs

# Set up the search paths:
PATH=$PATH:.

# Set up the shell environment:
set -u
trap "echo 'logout'" 0

# Set up the shell variables:
EDITOR=vi
export EDITOR
export ANT_HOME=/tmp/ant-current-bin/apache-ant-1.6.5
export JAVA_HOME=/opt/java1.4
export PATH=$PATH:/tmp/ant-current-bin/apache-ant-1.6.5/bin
export CLASSPATH=/tmp/ant-current-bin/apache-ant-1.6.5/lib

Any ideas, I would be very grateful.

Cheers,
JASH
If I can, I will!
2 REPLIES 2
Arunvijai_4
Honored Contributor

Re: Problems with ant

HI Jash,

Try to install and use Internet express Ant which is fully tested on HP-UX,

http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXIEXP1111

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
JASH_2
Trusted Contributor

Re: Problems with ant

I have just got my gnu tar working today, these are the steps that I took:-

From http://hpux.connect.org.uk/hppd/hpux/Gnu/tar-1.15.1/
Down load the depot files for your version of HPUX for:-
gcc
gettext
libiconf
make
libgcc

then
tar.1.15.1 itself.

Tansfer to your unix machine and gunzip all the depot files.

Swinstall all the depots except the tar.1.15.1

Do a find on libiconv.sl and libintl.sl and see if you have a copy of both in /usr/local/lib, if not link a copy from where they are to /usr/local/lib ie:-

#pwd
/usr/local/lib
#ln -s /opt/gnome/lib/libiconv.sl libiconf.sl


Swinstall the tar.1.15.1

Then :-

/usr/local/bin/tar -xvf apache-ant.....

Will then work perfectly.
If I can, I will!