Build Failed - Ambiguous Timer class

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Build Failed - Ambiguous Timer class

selwyn quan
Hi everyone,

I have recently started encountering the following error message in my
Ant builds of ImageJ:

Buildfile: /home/selwyn/usr/share/imagej/build.xml

compile:
    [javac] Compiling 349 source files to
/home/selwyn/usr/share/imagej/build
    [javac] warning: [options] bootstrap class path not set in
conjunction with -source 8
    [javac] /home/selwyn/usr/share/imagej/ij/gui/ImageCanvas.java:89:
error: reference to Timer is ambiguous
    [javac]     private Timer pressTimer;
    [javac]             ^
    [javac]   both class java.util.Timer in java.util and class
ij.plugin.Timer in ij.plugin match
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 1 error
    [javac] 1 warning

BUILD FAILED
/home/selwyn/usr/share/imagej/build.xml:9: Compile failed; see the
compiler error output for details.

Running Fedora  Linux with latest ImageJ download (1.53h17)

javac -version
javac 11.0.9.1

The error message seems self explanatory but have not seen it reported
by others so suspect I may be overlooking something obvious. Any help
appreciated.

Thanks,
Selwyn

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html