Generally you should use Java with the same architecture as your CPU. There are different version requirements for different Minecraft versions. If you don't know ...
The following email thread between Matthias Klose and Gil Tene was captured in an OpenJDK mailing list and reproduced here to help give folks some history on the the various version number confusions.
Some results have been hidden because they may be inaccessible to you
Show inaccessible results