During episode #281, Carl described some issues with cross compiling
from a JDK 6 install (on a Mac in this case) to run on JDK 5.  The
javac man page documents how to do this; in brief the -target has to
be set to the older version and the bootclasspath for compiling must
point to a rt.jar from the older JDK too:

http://java.sun.com/javase/6/docs/technotes/tools/solaris/javac.html#crosscomp-example

If the bootclasspath is not set, while the resulting class files may
work, differences in method resolution could cause use of methods not
present in the older release:
http://blogs.sun.com/darcy/entry/how_to_cross_compile_for

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to javaposse@googlegroups.com
To unsubscribe from this group, send email to 
javaposse+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to