Closed GoogleCodeExporter closed 8 years ago
Nevermind, figured it out. I hadn't set up my jars properly.
Original comment by vladimir...@gmail.com
on 14 Mar 2011 at 6:06
Hi, I have the same issue.
What was your solution ?
Original comment by francois...@gmail.com
on 30 Mar 2011 at 5:33
My problem was that I didn't set up my jars correctly. Here's the relevant part
of my working build file :
<project name="APNS_Sending" basedir=".">
<property name="src" location="src"/>
<property name="build" location="build"/>
<property name="classes.dir" location="${build}/classes"/>
<property name="libs.dir" value="${src}/libs"/>
<property name="jar.dir" value="${build}/jar"/>
<property name="jar.name" value="apns.jar"/>
<property name="main-class" value="send_apns"/>
<path id="build.classpath">
<fileset dir="${libs.dir}" includes="**/*.jar"/>
</path>
<target name="compile">
<mkdir dir="${classes.dir}"/>
<javac srcdir="${src}" destdir="${classes.dir}">
<classpath refid="build.classpath"/>
</javac>
</target>
<target name="jar" depends="compile">
<mkdir dir="${jar.dir}"/>
<jar jarfile="${jar.dir}/external-libs.jar">
<zipgroupfileset dir="${libs.dir}" includes="**/*.jar"/>
</jar>
<jar destfile="${jar.dir}/${jar.name}" basedir="${classes.dir}">
<manifest>
<attribute name="Main-Class" value="${main-class}"/>
</manifest>
<zipfileset src="${jar.dir}/external-libs.jar" excludes="META-INF/**/*"/>
</jar>
</target>
</project>
My libs directory includes all of the dependency jars that aren't already part
of the standard java installation:
-rw-r--r-- 1 vova dev 1876535 Mar 12 12:29 bcprov-jdk16-146.jar
-rw-r--r-- 1 vova dev 159509 Mar 12 12:27 commons-io-2.0.1.jar
-rw-r--r-- 1 vova dev 284220 Mar 11 01:55 commons-lang-2.6.jar
-rw-r--r-- 1 vova dev 11249 Mar 13 21:36 jargs.jar
-rw-r--r-- 1 vova dev 52644 Mar 10 19:08 javapns-jdk15-165.jar
-rw-r--r-- 1 vova dev 481534 Mar 11 01:57 log4j-1.2.16.jar
I hope that helps.
vova
Original comment by vladimir...@gmail.com
on 30 Mar 2011 at 5:41
Original comment by idbill.p...@gmail.com
on 6 Apr 2011 at 9:36
Original issue reported on code.google.com by
vladimir...@gmail.com
on 12 Mar 2011 at 10:30