launch4j 3.2 ANT task fails in Eclipse Indigo
Brought to you by:
grzegok
launch4j 3.2 ANT task fails in Eclipse Indigo with JDK 1.6.0_43 on Windows 7 with the following error:
Buildfile: H:\1-Produktion\Holtzbrinck\GvH-Framework\Entwicklung\Updater\quellcode\build\build.xml BUILD FAILED H:\1-Produktion\Holtzbrinck\GvH-Framework\Entwicklung\Updater\quellcode\build\build.xml:11: The following error occurred while executing this line: jar:file:/W:/01_skripte/Java/_Buildtools/launch4j/launch4j-3.2/lib/ant.jar!/org/apache/tools/ant/antlib.xml:37: Problem: failed to create task or type componentdef 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. Total time: 150 milliseconds
Where my buildfile on line 11 contains this:
<property name="program.version.number" value="2.3.2.0" />
and my launch4j target contains this:
<target name="windowsEXE"> <taskdef name="launch4j" classname="net.sf.launch4j.ant.Launch4jTask" /> <launch4j configFile="build/conf/launch4j_parsxUpdater.xml" jar="dist/parsxUpdater.jar" outfile="dist/Framework-Aktualisierung.exe" /> </target>
Temporary solution: removing ant.jar from launch4j's lib/ dir. but that's kinda weird!
Hi,
Actually this makes sense - the ant versions were different, I removed the ant.jar from the classpath of launch4j.jar since you need ant to use the launch4j task.
Best regards,
Grzegorz
Thanks for fixing this :)