I don't think the compiler version has anything to do with the error. It
looks like you have presented 2 packages (com.sun.net.ssl and class
javax.net.ssl) 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 [mailto:[EMAIL PROTECTED] 
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}"
         destdir="${build}"
         fork="true"
         source="1.2"
         target="1.2"
  />

OR

  <javac srcdir="${src}"
         destdir="${build}"
         fork="yes"
         executable="/opt/java/jdk1.2/bin/javac"
         compiler="javac1.2"
  />

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Erik
Weibust
Sent: Tuesday, February 14, 2006 12:55 PM
To: user@ant.apache.org
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.

thanks...
erik

compile-profile:
    [javac] Compiling 44 source files to
C:\dev\work\D6893\D6893\FJPKVPSourceCode_fromCVS\fj_dev61\build\classes
    [javac] This version of java does not support the classic compiler;
upgradin g to modern
    [javac]
C:\dev\work\D6893\D6893\FJPKVPSourceCode_fromCVS\fj_dev61\src\ProfileArch\co
m\sprint\fj\arch\utility\SSLSocketThread.java:14:
reference to TrustManager is ambiguous, both class
com.sun.net.ssl.TrustManager in com.sun.net.ssl and class
javax.net.ssl.TrustManager in javax.net.ssl 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 - http://erik.weibust.net co-leader Spring Dallas User
Group - http://SpringDallasUG.org

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
commands, e-mail: [EMAIL PROTECTED]

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



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to