• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Even Java 1.5 on Snow Leopard is actually Java 1.6
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Even Java 1.5 on Snow Leopard is actually Java 1.6


  • Subject: Re: Even Java 1.5 on Snow Leopard is actually Java 1.6
  • From: Henrique Prange <email@hidden>
  • Date: Fri, 25 Sep 2009 14:05:56 -0300

... and if you are using Maven you should take a look on this article [1]. There is a Maven plug-in that uses a tool called animal-sniffer [2] to verify that your code does not depend on new library classes/methods/fields introduced in later versions of JREs.

[1]http://maven.apache.org/guides/mini/guide-building-jdk14-on-jdk15.htm
[2]https://animal-sniffer.dev.java.net/signature-checker.html

Cheers,

Henrique

Mike Schrag wrote:
You should be able to compile for 1.5 even with a 1.6 VM by setting the source and target flags on Eclipse and Ant. It will technically compile against the 1.6 class libraries, but it will produce 1.5-compatible code.

ms

On Sep 25, 2009, at 11:43 AM, Jarda Hanuš wrote:

Dear list,

just a small notice - if you want to use Java 1.5 on Snow Leopard, be aware that what seems to be 1.5 directory is only a symlink pointing to 1.6 directory. So even if you have your Eclipse or ant configured to use Java 1.5 and compile for Java 1.5, that nasty polar cat will actually silently compile for Java 1.6.
Workaround is for example here <http://chxor.chxo.com/post/183013153/installing-java-1-5-on-snow-leopard>.


with regards

Jarda


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden <mailto:email@hidden>)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


------------------------------------------------------------------------

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Even Java 1.5 on Snow Leopard is actually Java 1.6 (From: Jarda Hanuš <email@hidden>)
 >Re: Even Java 1.5 on Snow Leopard is actually Java 1.6 (From: Mike Schrag <email@hidden>)

  • Prev by Date: Re: Even Java 1.5 on Snow Leopard is actually Java 1.6
  • Next by Date: direct actions and the current editing context
  • Previous by thread: Re: Even Java 1.5 on Snow Leopard is actually Java 1.6
  • Next by thread: direct actions and the current editing context
  • Index(es):
    • Date
    • Thread