[kaffe] problems with kaffe-1.1.2 + ant-1.5.4

Juan Antonio Martinez jantonio at dit.upm.es
Thu Oct 30 09:03:18 PST 2003


I'm trying to use kaffe jdk in my java developments, but found
several problems when using ant to build projects:

1- I need to invoke ant with "-Dbuild.compiler=extJavac" 
option. Else doesn't ever run

optionally can use compiler="extJavac" in javac task to get it
working. ¿Is this normal or a bug?

2- Take a look at these build.xml extract:
[.......]
   <target name="compile" depends="init"
      description="Compile the java code">
    <javac srcdir="${src}" destdir="${build}" compiler="extJavac">
        <classpath refid="project.class.path"/>
    </javac>
    <!-- here comes some non-relevant items
    .....
    -->
  </target>

[.....]
when invoked "ant -v compile" just get this message:

--------------------------------------------
[....]
ga/javaxml/example/PersonExample.java
    [javac]    
/home/jantonio/public_html/almacen/cosas/skaringa/src/com/skaringa/javaxml/example/Person.java
    [javac]    
/home/jantonio/public_html/almacen/cosas/skaringa/src/com/skaringa/javaxml/example/OrgMember.java
    [javac] Kjc: invalid option -- :
 
BUILD FAILED
file:/home/jantonio/public_html/almacen/cosas/skaringa/build.xml:33:
Compile failed; see the compiler error output for details.
   at org.apache.tools.ant.taskdefs.Javac.compile (Javac.java:844)
   at org.apache.tools.ant.taskdefs.Javac.execute (Javac.java:682)
   at org.apache.tools.ant.Task.perform (Task.java:341)
   at org.apache.tools.ant.Target.execute (Target.java:309)
   at org.apache.tools.ant.Target.performTasks (Target.java:336)
   at org.apache.tools.ant.Project.executeTarget (Project.java:1339)
   at org.apache.tools.ant.Project.executeTargets (Project.java:1255)
   at org.apache.tools.ant.Main.runBuild (Main.java:609)
   at org.apache.tools.ant.Main.start (Main.java:196)
   at org.apache.tools.ant.Main.main (Main.java:235)
 
Total time: 2 seconds
-------------------------------------------------

Of course, it works fine on Sun's JDK

What am i doing wrong?

Thanks in advance

-- 
Juan Antonio Martinez <jantonio at dit.upm.es>
Dpto Ingenieria Telematica
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada
	digitalmente
Url : http://kaffe.org/pipermail/kaffe/attachments/20031030/389a6e04/attachment-0002.pgp 


More information about the kaffe mailing list