1

Currently I am running java 7 on Windows 7

C:\>java -version
java version "1.7.0"
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) 64-Bit Server VM (build 21.0-b17, mixed mode)

How can i replace it with Java 6 ?? What is the best way ??

Rajeshwar
  • 11,179
  • 26
  • 86
  • 158

2 Answers2

0

Install Java 6 from the Sun website

Then change the PATH to point to Java 6.

Or you could have followed this guide: Java Website

Sinister Beard
  • 3,570
  • 12
  • 59
  • 95
James Reeves
  • 97
  • 1
  • 13
0

You actually don't need to change that - with the latest version (7 at the moment) you can run code compiled for all older versions, AND for the newest version.

What you probably want is to compile your code for use with a older version. See the cross-compilation example how to do it with the javac command, and this question for how to do it in eclipse.

Community
  • 1
  • 1
jmruc
  • 5,714
  • 3
  • 22
  • 41