This might help .......
http://java.sun.com/javase/6/docs/technotes/tools/solaris/javac.html#commandlineargfile
Cross-Compilation Example
Here we use javac to compile code that will run on a 1.5 VM.
% javac -target 1.5 -bootclasspath jdk1.5.0/lib/rt.jar \
-extdirs "" OldCode.java
The -target 1.5 option ensures that the generated class files will be
compatible with 1.5 VMs. By default, javac compiles for JDK 6.
The Java Platform JDK's javac would also by default compile against
its own bootstrap classes, so we need to tell javac to compile against
JDK 1.5 bootstrap classes instead. We do this with -bootclasspath and
-extdirs. Failing to do this might allow compilation against a Java
Platform API that would not be present on a 1.5 VM and would fail at
runtime.