Switching to different versions of compiler

Hi,

I have JDK1.4 installed on my machine. I would like to compile java files with the lower versions of JDK. i.e., JDK1.3. I am not interested to install JDK1.3 and compile.

Can someone guide me to compile by switching the versions ?

Thanks in advance...

Thanks & Regards,

Gurushant Hanchinal

[336 byte] By [Guru_Hanchinala] at [2007-10-1 15:36:08]
# 1
You need to read the Cross Compilation Options portion of this page: http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javac.html
ChuckBinga at 2007-7-10 19:54:41 > top of Java-index,Developer Tools,Java Compiler...
# 2

Hi,

I have tried with -target option and the version for which the classes to be compiled, it does not show any errors.

I doubt in my codei have few things which are unavailable in JDK1.3

My requirement is to find all the unsupported methods, interfaces and classes in 1.3 for the code written in 1.4.

please let me know if there are any workarounds or IDEs does this job!!

Thanks in advance..

Thanks & Regards,

Gurushant Hanchinal

Guru_Hanchinala at 2007-7-10 19:54:41 > top of Java-index,Developer Tools,Java Compiler...
# 3
You could have a look at IBM's compiler "jikes".
BIJ001a at 2007-7-10 19:54:41 > top of Java-index,Developer Tools,Java Compiler...