ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "bill/wilandra" <>
Subject RE: problem with compiler settings
Date Tue, 14 Feb 2006 22:16:09 GMT
I don't think the compiler version has anything to do with the error. It
looks like you have presented 2 packages ( and class to the compiler each of which contains the TrustManager
class. Since the reference to the TrustManager class in the SSLSocketThread
class is not fully qualified the compiler is having trouble resolving which
TrustManager class to use. I would guess that you either need to remove one
of the packages or fully qualify the reference to the TrustManager class.

It might also help to see which compiler is being used to run the Ant file
with -verbose.

HTH Bill

-----Original Message-----
From: Casey Daniell [] 
Sent: Tuesday, February 14, 2006 1:52 PM
To: 'Ant Users List'
Subject: RE: problem with compiler settings

Try setting just the javac process...

  <javac srcdir="${src}"


  <javac srcdir="${src}"

-----Original Message-----
From: [] On Behalf Of Erik
Sent: Tuesday, February 14, 2006 12:55 PM
Subject: problem with compiler settings

i'm looking for some help with the compiler options.  i have a project that
requires me to compile code written against java 1.2.  my system is running
java 5.0.  i'm using ant 1.6.5.

at the top of my build file i have set build.compiler = javac1.2 per the ant
manual.  i figured that would do the trick.  no luck.  i've pasted the error
message from my compile-profile target.  ant is giving an error message that
my version of java doesn't support a "classic" compiler.  i'll also paste my
javac task below this error message.


    [javac] Compiling 44 source files to
    [javac] This version of java does not support the classic compiler;
upgradin g to modern
reference to TrustManager is ambiguous, both class in and class in match
    [javac]     private TrustManager tm = null;
    [javac]                 ^

<javac srcdir="${cvsBase}/fj_dev61/src/ProfileArch"
destdir="${classes}" classpathref="project.classpath" debug="true"
failonerror="true" />
<javac srcdir="${cvsBase}/fj_dev61/src/backend" destdir="${classes}"
classpathref="project.classpath" debug="true" failonerror="true"/>

Erik Weibust
developer, blogger - co-leader Spring Dallas User
Group -

To unsubscribe, e-mail: For additional
commands, e-mail:

NOTICE: This communication contains information which is confidential to
Realm Business Solutions, Inc. or its subsidiary ("Realm"). If you are not
the intended recipient of this communication, please delete and destroy all
copies. If you are the intended recipient of this communication, you should
not copy, disclose or distribute this communication without Realm's
authority. Any views expressed in this communication are those of the
individual sender, except where the sender specifically states them to be
Realm's views. Except as required by law, Realm does not represent, warrant
or guarantee that the integrity of this communication has been maintained
nor that the communication is free of errors, harmful code, interception or

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message