开发者

Stand Alone Java Compiler?

开发者 https://www.devze.com 2023-03-29 06:31 出处:网络
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 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
0

精彩评论

暂无评论...
验证码 换一张
取 消