I recently fount out that Oracle has decided to discontinue support for java by the end of the year. How will this affect the ability to install things like optifine / liteloader etc that need java for their installation?
Since Mojang has a version of java in the minecraft launcher the game should not be affected by oracle's actions of nolonger making java. but it's required to run the current setups to install modloaders like forge.
NOTE: I know current systems that already have java installed should not be affected.
You can use the built-in Java runtime to launch Java programs (e.g. mod installers) without having to install it normally; you may even be able to set it as the default program used to open jar files so it acts like a normal Java installation (when opening a file without an associated program you'll get an "open with" dialog box, or right click and choose that; go to choose an app and navigate to the location given below and select "javaw.exe". You may have to edit the PATH environment variable so it knows where to find its libraries, which will be in the bin folder it is in):
1. Go to the Forge website (https://files.minecraftforge.net/) and download the .jar file for the version of Forge you want to install. This will be the version indicated by the word “Installer”. DO NOT download the “Installer-win” version. Save the file to the following directory: C:\Program Files (x86)\Minecraft\runtime\jre-x64\1.8.0_25\bin Note that your directory structure may be slightly different depending on which version of Java was included with the Minecraft installer you used. The main idea here is that the .jar file should be in the bin subdirectory of the Java install within your Mincraft installation (located in the runtime subdirectory of the install directory).
2. Open up a command prompt (cmd) and go to the directory you just saved the .jar file to. Using the example above this command would be as follows: cd \Program Files (x86)\Minecraft\runtime\jre-x64\1.8.0_25\bin
3. Use the version of Java in this directory to run the Forge installer in the .jar file. To do this type the following: java -jar forge-1.7.10-10.13.4.1614-1.7.10-installer.jar Substitute the name of your .jar file in place of the one in this command.
If anything, Forge and other modloaders should update their installers to use the runtime since many people increasingly only install Java to run them. There is also a Windows installer for versions back to 1.6.4 which is an executable file so for Windows you can use that.
Also, Optifine can be installed manually, although it is much more complex and requires editing the version json to prevent the launcher from redownloading a clean jar (this is not included in the instructions given on the Optifine thread, which appear to not have been updated since 1.6.2; I've always installed it this way since I use my own modded versions, and I'm not sure if the installer will even accept such a pre-modded jar as I've had people have trouble using Optifine with my own mods).