Talk:How to Build the Compiler
From Planet JFX
Can't seem to get it to compile on Mac OS 10.5.1 Leopard. I get an error of:
-post-compile: Trying to override old definition of task javafxc
[javafxc] Compiling 197 source files to /Users/mccm06/Documents/Temp/Downloads/openjfx-compiler/runtime/build/classes [javafxc] java.lang.reflect.InvocationTargetException
BUILD FAILED /Users/mccm06/Documents/Temp/Downloads/openjfx-compiler/build.xml:221: The following error occurred while executing this line: /Users/mccm06/Documents/Temp/Downloads/openjfx-compiler/build.xml:302: The following error occurred while executing this line: /Users/mccm06/Documents/Temp/Downloads/openjfx-compiler/runtime/build.xml:63: java.lang.reflect.InvocationTargetException
Will try to dig deeper as to why in the morning. This is with code pulled at 11:00pm on Nov 28th, 2007.
The offending build.xml line appears to consist of:
compilerclasspath="${build.classes.dir}:${javac.classpath}">
-Matthew McCullough (matthewm@ambientideas.com)
[edit] Increase Ant's maximum memory
Whenever you get an InvocationTargetException in Ant, it only means that the task failed -- the exception's getCause() method returns the real problem. Run "ant -v" to get verbose output which will display two stack traces: the InvocationTargetException (ignore), followed by the real exception. In this case you should see an OutOfMemoryException.
Recent builds include a diagnostic which eats memory during compilation but has been great at catching bugs early, so building a lot of .fx files at once needs lots of memory. When we get closer to release we'll remove that test to reduce the compiler's footprint. For now, increase the maximum memory Ant uses by creating one of these files:
Windows: %HOME%\antrc_pre.bat
set ANT_OPTS=-Xmx384m
Mac OS/Linux/Solaris/etc.: $HOME/.antrc
ANT_OPTS=-Xmxe384m
