Seems to be a bit of confusion here.. Ant is reporting a different Java home
java.home is C:\Program Files\Java\jdk1.5.0_09\jre
then what you state as
JAVA_HOME=C:\Program Files\Java\jdk1.5.0_09
You need to set your java home in "My Computer->Properties->Advanced->Environmental Variables" or use SET JAVA_HOME=C:\Program Files\Java\jdk1.5.0_09
on the command line before you run ant from the "same" command line.
Ant javac info here:
http://ant.apache.org/manual/CoreTasks/javac.html
Paul
On 11/11/06, tom obedlam <[EMAIL PROTECTED]> wrote:
Hello everyone, I posted before without a response but I haven't been
able to solve my issue.When I try to compile with ant the build fails
stating:
BUILD FAILED C:\Program Files\Red5\build.xml:131: Compiler Adapter
'${build.compiler}' can't
be found.
I've check my environment variables -
JAVA_HOME = C:\Program Files\Java\jdk1.5.0_09
and
JAVA_VERSION = 1.5
both confirmed in the command prompt. The ant server has been added to my path.
tool.jar is in my eclipse class path under global entries. I read the
eclipse and ant FAQs, and tried to use eclipses compiler changing
build.xml but to no avail. I apologize for this utterly nooby question
but I am completely new to the world of Java. Any suggestions would be
greatly appreciated.
thanks for your time and hard work. Bellow is the full cmd prompt
response when I try to compile with ant.
C:\Program Files>cd red5
C:\Program Files\Red5>ant server
Buildfile: build.xml
[echo] java.home is C:\Program Files\Java\jdk1.5.0_09\jre and the target ve
rsi
on is ${java.target_version}
-junit.check:
prepare:
compile:
[echo] Javac version: 1.5
[echo] Compiler adapter name: ${build.compiler}
[javac] Compiling 337 source files to C:\Program Files\Red5\bin
BUILD FAILED
C:\Program Files\Red5\build.xml:131: Compiler Adapter '${build.compiler}' can't
be found.
Total time: 1 second
C:\Program Files\Red5>
C:\Program Files\Red5>
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org
--
The early bird may get the worm, but the second mouse gets the cheese.
_______________________________________________ Red5 mailing list [email protected] http://osflash.org/mailman/listinfo/red5_osflash.org
