/user/local/ant/apache-ant-1.8.1
этот путь...
но компиляция всё равно не идёт... Даже при верном расположении пути. См. другую мою тему.
Вчера, видел как разработчики от red5, при ошибке сборки с помощью ANT советовали установить переменную JDK_HOME. Но у меня она же будет полностью совпадать с JAVA_HOME.
При компиляции red5 выдаёт такое:
Цитата:
-java6.check:
[echo] Using Java 1.6
prepare:
compile:
[echo] javac version: 1.6
[echo] Not using the Eclipse IDE
[echo] Compiler adapter name: modern
[taskdef] Could not load definitions from resource org/apache/ivy/ant/antlib.x ml. It could not be found.
compile-core:
[taskdef] Could not load definitions from resource org/apache/ivy/ant/antlib.x ml. It could not be found.
retrieve:
BUILD FAILED
/usr/home/red5/red5-0.9.1/build.xml:217: The following error occurred while exec uting this line:
/usr/home/red5/red5-0.9.1/build.xml:231: The following error occurred while exec uting this line:
/usr/home/red5/red5-0.9.1/build.xml:176: Problem: failed to create task or type antlib:org.apache.ivy.ant:settings
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
No types or tasks have been defined in this namespace yet
This appears to be an antlib declaration.
Action: Check that the implementing library exists in one of:
-/usr/local/share/java/apache-ant/lib
-/root/.ant/lib
-a directory added on the command line with the -lib argument
Total time: 0 seconds
[
root@fbsdsrv
/home/red5/red5-0.9.1]#
Фаил со всем нужным ему находится в [путь]/lib/ant.jar В чём проблема? Почему ant не может получить доступ?
Вот жеж прописал и всё равно не комп. red5
пишет:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Launcher
Может опять неправильные пути?
Устанавливал из портов.
Мне нужно прописать JAVA_HOME и ANT_HOME
Делаю всё стандартно...
#export JAVA_HOME=/usr/local/jdk1.6.0 >> /etc/profile
#export ANT_HOME=/usr/local/bin >> /etc/profile
Прозваниваю, - работает
Но, когда перезахожу, то пустые.