L
Lukas
Hi group
At
http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/javac.html#crosscomp-example
there is a cross-compilation example:
% javac -target 1.4 -bootclasspath jdk1.4.2/lib/classes.zip \
-extdirs "" OldCode.java
.... for compiling down to 1.4 compatibility with Java 5's javac.
I've inspected my 1.4 J2SDK and cannot find a classes.zip file
anywhere. The description indicates that it's necessary for the javac
invocation to specify the JDK 1.4 bootstrap classes for the compilate
to reliably be 1.4 compatible.
Apart from not finding the bootstrap classes in my 1.4 installation, I
need to be able to write some (scripting) code to do the
downcompilation on machines that ONLY have JDK 5 installed, so ideally
I don't want to include lots of big 1.4 files with my script.
Any ideas?
At
http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/javac.html#crosscomp-example
there is a cross-compilation example:
% javac -target 1.4 -bootclasspath jdk1.4.2/lib/classes.zip \
-extdirs "" OldCode.java
.... for compiling down to 1.4 compatibility with Java 5's javac.
I've inspected my 1.4 J2SDK and cannot find a classes.zip file
anywhere. The description indicates that it's necessary for the javac
invocation to specify the JDK 1.4 bootstrap classes for the compilate
to reliably be 1.4 compatible.
Apart from not finding the bootstrap classes in my 1.4 installation, I
need to be able to write some (scripting) code to do the
downcompilation on machines that ONLY have JDK 5 installed, so ideally
I don't want to include lots of big 1.4 files with my script.
Any ideas?