Put the summary of the bug you're having here
What I expected to happen was...:
Launched Optifine or Forge
What actually happened was...:
It said
Failed to download file.
Error details: Couldn't select a valid version of the Java runtime to download.
Attachments
Comments 6
As stated above, OptiFine and Forge are both modded installations of Minecraft, so they're not supported.
That's a issue with Optifine and Forge not vanilla minecraft