Mailinglist Archive: opensuse-packaging (83 mails)

< Previous Next >
Re: [opensuse-packaging] How to set javac target ?
  • From: Bernhard Walle <bwalle@xxxxxxx>
  • Date: Mon, 27 Oct 2008 21:47:48 +0100
  • Message-id: <20081027214748.1cac8ef0@xxxxxxxxxxxxxxx>
* Stefan Dirsch [2008-10-27 16:57]:

Looks like I used the right one.

./org/fibs/geotag/ 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=".">
Build GeoTag

<!-- 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 name="compile" depends="init" description="Compile the source ">
<javac target="1.5" srcdir="${src}" destdir="${build}" classpath="${unit}"

<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}" />

<target name="clean" description="clean up">
<delete dir="${build}"/>
<delete dir="${dist}"/>

---------------------------- 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.


Bernhard Walle, SUSE LINUX Products GmbH, Architecture Development
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx

< Previous Next >