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