Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Java 1.6 Status on Apple
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Java 1.6 Status on Apple




On Aug 26, 2005, at 1:11 PM, Sukmi Ledru wrote:

You can require the user to have Java 1.5 installed, you can
gracefully degrade to other versions of the JVM,.... but you can
distribute software.

If you had compiled your Java application in 1.5, you can NOT run it with
1.4. So you can not degrade gracefully. So, I've learned.

Note that javac supports the -target and -source options. For example the following will restrict the Java language to 1.4 (the -source option) and compile it such that a JVM supporting 1.4 or later can run it at least byte code wise (the -target option).


> javac -target 1.4 -source 1.4

In Xcode, Intellij IDEA, etc. you can also configure such options per project (or per file for some).

-Shawn

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


References: 
 >RE: Java 1.6 Status on Apple (From: "Sukmi Ledru" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.