ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jorge Escudero <escuder...@yahoo.com.ar>
Subject problem with the installation
Date Mon, 18 Jun 2012 01:30:24 GMT
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


Mime
View raw message