Note that there are some explanatory texts on larger screens.

plurals
  1. POCreate jar for android project in eclipse
    primarykey
    data
    text
    <p>Hello all how can I create jar file of my project that is created in android using eclipse. I have done in this way <em>project -> right-click->export --> select builder -->antbuilder-->ok</em> then after this process <em>build.xml</em> will be created. On bulid.xml I will create new builder.</p> <ul> <li>Right click on project -> properties --> select new -->give build.xml and your project path and press ok, new builder will be created.</li> <li>Now select that builder from project properties and press ok.</li> <li>Now build your project and your jar will be created in bin folder.</li> </ul> <p>I have followed above process but my jar is not found in bin folder. I can see my build.xml is created and all process goes smooth but still jar is not created. Can any one tell me how can I do this?</p> <p>My build.xml </p> <pre class="lang-xml prettyprint-override"><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="testtttttttttt"&gt; &lt;property environment="env"/&gt; &lt;property name="debuglevel" value="source,lines,vars"/&gt; &lt;property name="target" value="1.6"/&gt; &lt;property name="source" value="1.6"/&gt; &lt;path id="Android 2.2.libraryclasspath"&gt; &lt;pathelement location="C:/Program Files (x86)/Android/android-sdk/platforms/android-8/android.jar"/&gt; &lt;/path&gt; &lt;path id="com.android.ide.eclipse.adt.LIBRARIES.libraryclasspath"/&gt; &lt;path id="testtttttttttt.classpath"&gt; &lt;pathelement location="bin/classes"/&gt; &lt;path refid="Android 2.2.libraryclasspath"/&gt; &lt;path refid="com.android.ide.eclipse.adt.LIBRARIES.libraryclasspath"/&gt; &lt;/path&gt; &lt;target name="init"&gt; &lt;mkdir dir="bin/classes"/&gt; &lt;copy includeemptydirs="false" todir="bin/classes"&gt; &lt;fileset dir="src"&gt; &lt;exclude name="**/*.java"/&gt; &lt;/fileset&gt; &lt;/copy&gt; &lt;copy includeemptydirs="false" todir="bin/classes"&gt; &lt;fileset dir="gen"&gt; &lt;exclude name="**/*.java"/&gt; &lt;/fileset&gt; &lt;/copy&gt; &lt;/target&gt; &lt;target name="clean"&gt; &lt;delete dir="bin/classes"/&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/classes" source="${source}" target="${target}"&gt; &lt;src path="src"/&gt; &lt;classpath refid="testtttttttttt.classpath"/&gt; &lt;/javac&gt; &lt;javac debug="true" debuglevel="${debuglevel}" destdir="bin/classes" source="${source}" target="${target}"&gt; &lt;src path="gen"/&gt; &lt;classpath refid="testtttttttttt.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;/project&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload