views:

980

answers:

2

My development environment is running in JDK1.6, and I need to compile some classes so they are compatible with a client running JDK1.5. How would I do this with the 'javac' ant target?

+2  A: 

Command line : javac -target 1.5 sourcefiles

Ant: < javac srcdir="${src} destdir="${build}" target="1.5" />

Tom Feiner
+1  A: 
<javac source="1.5"... />
Darron