ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From glenn opdycke-hansen <glenn...@gmail.com>
Subject Re: problem with the installation
Date Mon, 18 Jun 2012 03:48:15 GMT
please try with different ANT_HOME and PATH:

export ANT_HOME=/usr/ant/apache-ant-1.8.4
export PATH=${PATH}:${ANT_HOME}/bin

I would also run
ant -diagnostics


--glenn


On Sun, Jun 17, 2012 at 8:30 PM, Jorge Escudero <escuderixx@yahoo.com.ar> wrote:
> When I type "ant":
>
> root@debian6:~# ant
> 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$1.run(URLClassLoader.java:202)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> Could not find the main class: org.apache.tools.ant.launch.Launcher.
>  Program will exit.
>
> This is my file .bashrc:
>
> export JAVA_HOME=/usr/lib/jvm/java-6-sun
> export ANT_HOME=/usr/ant/apache-ant-1.8.4/bin
> export PATH=${PATH}:${ANT_HOME}
>
> I tested the paths and It was ok
>
> Can any help me?
>
> Jorge Escudero
> sorry about my english...uff
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>

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


Mime
View raw message