Jimmy Huch
Jimmy Huch

Reputation: 4550

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 javac...

Are there any suggestions on what I should do?

Upvotes: 0

Views: 1706

Answers (3)

Peter Lawrey
Peter Lawrey

Reputation: 533870

You can do following

C:\Program Files\Java\jdk1.5.0_22\bin\javac

Upvotes: 0

Matt
Matt

Reputation: 334

http://download.oracle.com/javase/6/docs/technotes/tools/windows/javac.html

Look at the "Cross-Compilation Options" section

Upvotes: 1

Bruno Reis
Bruno Reis

Reputation: 37832

Won't javac -target 1.5 -source 1.5 be enough?

Upvotes: 5

Related Questions