Posted by
dscho on
Aug 11, 2013; 10:07pm
URL: http://imagej.273.s1.nabble.com/Java-error-when-compiling-a-plugin-tp5004378p5004386.html
Hi Andrew,
On Sun, 11 Aug 2013, AJBell wrote:
> I'm trying to use the Java 1.7 Files.copy to copy a set of images as
> part of a plugin using the following code:
>
> [...]
It is in general a very bad idea to require new technologies unless you
have a very, very good reason to put that limitation on your software. In
the case of Java 1.7, it is even worse than just a violation of this
hard-earned insight: Java 1.7 is simply not available to users who have
MacOSX 10.6 or earlier (which is a ton of people).
It should not be a terribly big challenge for you to avoid relying on
too-new Java, in favor of opening your software for a larger potential
audience.
> But I am getting the following error: warning: [options] bootstrap class
> path not set in conjunction with -source 1.5
Yes, this is the hard-won insight I mentioned earlier, engrained into
ImageJ's "Compile and Run": even expert users are often not able to
overcome the obstacle imposed by requiring even Java 1.6 (e.g.
PowerPC-based Macs), while it does not challenge even only moderately
advanced developers to restrict their software to use the Java 1.5 API.
Having said that, in ImageJ2 and Fiji we actually do rely on Java 1.6 API
already... we use a component called Retrotranslator to allow the software
to run on Java 1.5 in many circumstances even if it was compiled for 1.6.
Ciao,
Johannes
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html