What Java version to compile for?

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

What Java version to compile for?

Jon Harman-3
Hi,
For some time I have been compiling my plugin using my javac compiler with
-source 1.4 -target 1.4
This was out of my fear that some people might have old versions of
Java.  (I think this was true of some Macs). Is this fear justified?
Should I update this to maybe 1.6?

Jon

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: What Java version to compile for?

Michael Doube-4
Hi Jon,

> For some time I have been compiling my plugin using my javac compiler
> with -source 1.4 -target 1.4 This was out of my fear that some people
> might have old versions of Java.  (I think this was true of some
> Macs). Is this fear justified? Should I update this to maybe 1.6?

I'm compiling for 1.5 and only very rarely log any uses with this
version. Nearly all users are running 1.6 or 1.7, and it seems that 1.7
is pretty buggy, at least for me on Linux.

1.5 would be the conservative approach, 1.6 would get almost everyone
(except some older Macs, e.g. PPC MacBooks stuck on Mac OS X 10.5.8,
which can't update Java past 1.5).

Michael
[RVC Logo - link to RVC Website]<http://www.rvc.ac.uk>    [Twitter icon - link to RVC (Official) Twitter] <http://twitter.com/RoyalVetCollege>     [Facebook icon - link to RVC (Official) Facebook] <http://www.facebook.com/theRVC>     [YouTube icon - link to RVC YouTube] <http://www.youtube.com/user/RoyalVetsLondon?feature=mhee>     [Pinterest icon - link to RVC Pinterest] <http://pinterest.com/royalvetcollege/>

This message, together with any attachments, is intended for the stated addressee(s) only and may contain privileged or confidential information. Any views or opinions presented are solely those of the author and do not necessarily represent those of the Royal Veterinary College (RVC). If you are not the intended recipient, please notify the sender and be advised that you have received this message in error and that any use, dissemination, forwarding, printing, or copying is strictly prohibited. Unless stated expressly in this email, this email does not create, form part of, or vary any contractual or unilateral obligation. Email communication cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, amended, lost, destroyed, incomplete or contain viruses. Therefore, we do not accept liability for any such matters or their consequences. Communication with us by email will be taken as acceptance of the risks inherent in doing so.

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