Reputation: 4550
I have latest JDK 1.6 installed on my computer. Is there some way I can compile a program with Java 1.5 without removing my 1.6 installation for the new installation?
I searched a bit online and I couldn't find much information.
I think I might download 1.5 from the website and compile it using it's path to javac...
Are there any suggestions on what I should do?
Upvotes: 0
Views: 1706
Reputation: 533870
You can do following
C:\Program Files\Java\jdk1.5.0_22\bin\javac
Upvotes: 0
Reputation: 334
http://download.oracle.com/javase/6/docs/technotes/tools/windows/javac.html
Look at the "Cross-Compilation Options" section
Upvotes: 1