Stand Alone Java Compiler?
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 jav开发者_JAVA技巧ac...
Are there any suggestions on what I should do?
Won't javac -target 1.5 -source 1.5
be enough?
http://download.oracle.com/javase/6/docs/technotes/tools/windows/javac.html
Look at the "Cross-Compilation Options" section
You can do following
C:\Program Files\Java\jdk1.5.0_22\bin\javac
精彩评论