On Mon, Oct 27, 2008 at 09:47:48PM +0100, Bernhard Walle wrote:
* Stefan Dirsch [2008-10-27 16:57]:
Looks like I used the right one.
./org/fibs/geotag/Geotag.java: public static void main(String[] args) {
But I would try org.fibs.geotag.Geotag instead.
Same issue. :-(
Here's a build.xml:
---------------------------- 8< ---------------------------------------
<?xml version="1.0" encoding="utf-8"?> <project name="GeoTag" default="dist" basedir="."> <description> Build GeoTag </description>
<!-- set global properties for this build --> <property name="src" location="src"/> <property name="build" location="build"/> <property name="dist" location="dist"/> <property name="res" location="res" /> <property name="junit" location="/usr/share/java/junit.jar" />
<target name="init"> <mkdir dir="${build}"/> </target>
<target name="compile" depends="init" description="Compile the source "> <javac target="1.5" srcdir="${src}" destdir="${build}" classpath="${unit}" /> </target>
<target name="dist" depends="compile" description="Generate the distribution"> <mkdir dir="${dist}"/> <jar jarfile="${dist}/GeoTag.jar" manifest="MANIFEST.MF"> <fileset dir="${build}" /> <fileset dir="${src}" excludes="**/*.java" /> <fileset dir="${res}" /> </jar> </target>
<target name="clean" description="clean up"> <delete dir="${build}"/> <delete dir="${dist}"/> </target> </project>
---------------------------- 8< ---------------------------------------
Just call "ant" in that directory. Produces a dist/GeoTag.jar that works fine with "java -Xmx256M -jar dist/GeoTag.jar" here. I used Sun JDK 1.6.0_10 to test.
BTW: If you start it with -console=yes, then you actually see error output on console. Else the output is redirected to /tmp/Geotag.log.
Thanks. You've helped me a lot! :-) Best regards, Stefan Public Key available ------------------------------------------------------ Stefan Dirsch (Res. & Dev.) SUSE LINUX Products GmbH Tel: 0911-740 53 0 Maxfeldstraße 5 FAX: 0911-740 53 479 D-90409 Nürnberg http://www.suse.de Germany ----------------------------------------------------------------- SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) ----------------------------------------------------------------- -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org