title: Deploy my javafx 2 application on eclipse-SDK-4.2.1-win32-efx-0.8.0
body: <p>I install eclipse-SDK-4.2.1-win32-efx-0.8.0 for javafx developpement.
  I make soe test and I want to deploy my applicattion.
  I firstly export it into ant and got this ant file in my projet</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&gt;
  &lt;!-- WARNING: Eclipse auto-generated file.
                Any modifications will be overwritten.
                To include a user specific buildfile here, simply create one in the same
                directory with the processing instruction &lt;?eclipse.ant.import?&gt;
                as the first entry and export the buildfile again. --&gt;&lt;project basedir="." default="build" name="Newtest"&gt;
      &lt;property environment="env"/&gt;
      &lt;property name="ECLIPSE_HOME" value="../../"/&gt;
      &lt;property name="debuglevel" value="source,lines,vars"/&gt;
      &lt;property name="target" value="1.7"/&gt;
      &lt;property name="source" value="1.7"/&gt;
      &lt;path id="JavaFX SDK.libraryclasspath"&gt;
          &lt;pathelement location="C:/Program Files/Java/jre7/lib/jfxrt.jar"/&gt;
      &lt;/path&gt;
      &lt;path id="Newtest.classpath"&gt;
          &lt;pathelement location="bin"/&gt;
          &lt;path refid="JavaFX SDK.libraryclasspath"/&gt;
          &lt;pathelement location="lib/jfxtras-labs-2.2-r4.jar"/&gt;
      &lt;/path&gt;
      &lt;target name="init"&gt;
          &lt;mkdir dir="bin"/&gt;
          &lt;copy includeemptydirs="false" todir="bin"&gt;
              &lt;fileset dir="src"&gt;
                  &lt;exclude name="**/*.java"/&gt;
              &lt;/fileset&gt;
          &lt;/copy&gt;
      &lt;/target&gt;
      &lt;target name="clean"&gt;
          &lt;delete dir="bin"/&gt;
      &lt;/target&gt;
      &lt;target depends="clean" name="cleanall"/&gt;
      &lt;target depends="build-subprojects,build-project" name="build"/&gt;
      &lt;target name="build-subprojects"/&gt;
      &lt;target depends="init" name="build-project"&gt;
          &lt;echo message="${ant.project.name}: ${ant.file}"/&gt;
          &lt;javac debug="true" debuglevel="${debuglevel}" destdir="bin" includeantruntime="false" source="${source}" target="${target}"&gt;
              &lt;src path="src"/&gt;
              &lt;classpath refid="Newtest.classpath"/&gt;
          &lt;/javac&gt;
      &lt;/target&gt;
      &lt;target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects"/&gt;
      &lt;target description="copy Eclipse compiler jars to ant lib directory" name="init-eclipse-compiler"&gt;
          &lt;copy todir="${ant.library.dir}"&gt;
              &lt;fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/&gt;
          &lt;/copy&gt;
          &lt;unzip dest="${ant.library.dir}"&gt;
              &lt;patternset includes="jdtCompilerAdapter.jar"/&gt;
              &lt;fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/&gt;
          &lt;/unzip&gt;
      &lt;/target&gt;
      &lt;target description="compile project with Eclipse compiler" name="build-eclipse-compiler"&gt;
          &lt;property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/&gt;
          &lt;antcall target="build"/&gt;
      &lt;/target&gt;
      &lt;target name="Test"&gt;
          &lt;java classname="app.TEst" failonerror="true" fork="yes"&gt;
              &lt;classpath refid="Newtest.classpath"/&gt;
          &lt;/java&gt;
      &lt;/target&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>and click on "
  Generate ant build.xml and run" I have this error on console:</p>
  
  <pre><code>Buildfile: D:\eclipse-SDK-4.2.1-win32-efx-0.8.0\eclipse\MyWorkPlace\Newtest\build\build.xml
  setup-staging-area:
     [delete] Deleting directory D:\eclipse-SDK-4.2.1-win32-efx-0.8.0\eclipse\MyWorkPlace\Newtest\build\externalLibs
     [delete] Deleting directory D:\eclipse-SDK-4.2.1-win32-efx-0.8.0\eclipse\MyWorkPlace\Newtest\build\project
     [delete] Deleting directory D:\eclipse-SDK-4.2.1-win32-efx-0.8.0\eclipse\MyWorkPlace\Newtest\build\projectRefs
      [mkdir] Created dir: D:\eclipse-SDK-4.2.1-win32-efx-0.8.0\eclipse\MyWorkPlace\Newtest\build\externalLibs
       [copy] Copying 1 file to D:\eclipse-SDK-4.2.1-win32-efx-0.8.0\eclipse\MyWorkPlace\Newtest\build\externalLibs
      [mkdir] Created dir: D:\eclipse-SDK-4.2.1-win32-efx-0.8.0\eclipse\MyWorkPlace\Newtest\build\project
       [copy] Copying 2 files to D:\eclipse-SDK-4.2.1-win32-efx-0.8.0\eclipse\MyWorkPlace\Newtest\build\project
      [mkdir] Created dir: D:\eclipse-SDK-4.2.1-win32-efx-0.8.0\eclipse\MyWorkPlace\Newtest\build\projectRefs
  do-compile:
     [delete] Deleting directory D:\eclipse-SDK-4.2.1-win32-efx-0.8.0\eclipse\MyWorkPlace\Newtest\build\build
      [mkdir] Created dir: D:\eclipse-SDK-4.2.1-win32-efx-0.8.0\eclipse\MyWorkPlace\Newtest\build\build\src
      [mkdir] Created dir: D:\eclipse-SDK-4.2.1-win32-efx-0.8.0\eclipse\MyWorkPlace\Newtest\build\build\libs
      [mkdir] Created dir: D:\eclipse-SDK-4.2.1-win32-efx-0.8.0\eclipse\MyWorkPlace\Newtest\build\build\classes
       [copy] Copying 1 file to D:\eclipse-SDK-4.2.1-win32-efx-0.8.0\eclipse\MyWorkPlace\Newtest\build\build\libs
       [copy] Copying 2 files to D:\eclipse-SDK-4.2.1-win32-efx-0.8.0\eclipse\MyWorkPlace\Newtest\build\build\src
      [javac] Compiling 2 source files to D:\eclipse-SDK-4.2.1-win32-efx-0.8.0\eclipse\MyWorkPlace\Newtest\build\build\classes
  init-fx-tasks:
    [taskdef] Could not load definitions from resource com/sun/javafx/tools/ant/antlib.xml. It could not be found.
  do-deploy:
       [copy] Copying 1 file to D:\eclipse-SDK-4.2.1-win32-efx-0.8.0\eclipse\MyWorkPlace\Newtest\build\dist\libs
  
  BUILD FAILED
  D:\eclipse-SDK-4.2.1-win32-efx-0.8.0\eclipse\MyWorkPlace\Newtest\build\build.xml:93: Problem: failed to create task or type javafx:com.sun.javafx.tools.ant:resources
  Cause: The name is undefined.
  Action: Check the spelling.
  Action: Check that any custom tasks/types have been declared.
  Action: Check that any &lt;presetdef&gt;/&lt;macrodef&gt; declarations have taken place.
  No types or tasks have been defined in this namespace yet
  
  
  Total time: 14 seconds
  </code></pre>
  
  <p>I don't know anything in ant so please what's my problem?
  Thanks</p>