While trying to run Minecraft with Forge and Sponge installed, I got a PEBKACException!. It seems minecraft uses a version of java from ‘C:\Program Files (x86)\Minecraft\runtime\jre-x64’, which is 1.8.0_25, instead of the version I have installed on my computer. How do I update Minecraft’s java version, or change where minecraft loads java from?
[14:30:51] [main/DEBUG] [FML/]: Injecting tracing printstreams for STDOUT/STDERR.
[14:30:51] [main/INFO] [FML/]: Forge Mod Loader version 11.15.1.1722 for Minecraft 1.8.9 loading
[14:30:51] [main/INFO] [FML/]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_25, running on Windows 7:amd64:6.1, installed at C:\Program Files (x86)\Minecraft\runtime\jre-x64\1.8.0_25
[14:30:51] [main/DEBUG] [FML/]: Java classpath at launch is C:\Users\Kristian\AppData\Roaming\.minecraft\libraries\net\minecraftforge\forge\1.8.9-11.15.1.1722\forge-1.8.9-11.15.1.1722.jar;C:\Users\Kristian\AppData\Roaming\.minecraft\libraries\io\netty\netty-all\4.0.23.Final\netty-all-4.0.23.Final.jar;C:\Users\Kristian\AppData\Roaming\.minecraft\libraries\net\minecraft\launchwrapper\1.12\launchwrapper-1.12.jar;C:\Users\Kristian\AppData\Roaming\.minecraft\libraries\org\ow2\asm\asm-all\5.0.3\asm-all-5.0.3.jar;C:\Users\Kristian\AppData\Roaming\.minecraft\libraries\jline\jline\2.13\jline-2.13.jar;C:\Users\Kristian\AppData\Roaming\.minecraft\libraries\com\typesafe\akka\akka-actor_2.11\2.3.3\akka-actor_2.11-2.3.3.jar;C:\Users\Kristian\AppData\Roaming\.minecraft\libraries\com\typesafe\config\1.2.1\config-1.2.1.jar;C:\Users\Kristian\AppData\Roaming\.minecraft\libraries\org\scala-lang\scala-actors-migration_2.11\1.1.0\scala-actors-migration_2.11-1.1.0.jar;C:\Users\Kristian\AppData\Roaming\.minecraft\libraries\org\scala-lang\scala-compiler\2.11.1\scala-compiler-2.11.1.jar;C:\Users\Kristian\AppData\Roaming\.minecraft\libraries\org\scala-lang\plugins\scala-continuations-library_2.11\1.0.2\scala-continuations-library_2.11-1.0.2.jar;C:\Users\Kristian\AppData\Roaming\.minecraft\libraries\org\scala-lang\plugins\scala-continuations-plugin_2.11.1\1.0.2\scala-continuations-plugin_2.11.1-1.0.2.jar;C:\Users\Kristian\AppData\Roaming\.minecraft\libraries\org\scala-lang\scala-library\2.11.1\scala-library-2.11.1.jar;C:\Users\Kristian\AppData\Roaming\.minecraft\libraries\org\scala-lang\scala-parser-combinators_2.11\1.0.1\scala-parser-combinators_2.11-1.0.1.jar;C:\Users\Kristian\AppData\Roaming\.minecraft\libraries\org\scala-lang\scala-reflect\2.11.1\scala-reflect-2.11.1.jar;C:\Users\Kristian\AppData\Roaming\.minecraft\libraries\org\scala-lang\scala-swing_2.11\1.0.1\scala-swing_2.11-1.0.1.jar;C:\Users\Kristian\AppData\Roaming\.minecraft\libraries\org\scala-lang\scala-xml_2.11\1.0.2\scala-xml_2.11-1.0.2.jar;C:\Users\Kristian\AppData\Roaming\.minecraft\libraries\lzma\lzma\0.0.1\lzma-0.0.1.jar;C:\Users\Kristian\AppData\Roaming\.minecraft\libraries\net\sf\jopt-simple\jopt-simple\4.6\jopt-simple-4.6.jar;C:\Users\Kristian\AppData\Roaming\.minecraft\libraries\java3d\vecmath\1.5.2\vecmath-1.5.2.jar;C:\Users\Kristian\AppData\Roaming\.minecraft\libraries\net\sf\trove4j\trove4j\3.0.3\trove4j-3.0.3.jar;C:\Users\Kristian\AppData\Roaming\.minecraft\libraries\oshi-project\oshi-core\1.1\oshi-core-1.1.jar;C:\Users\Kristian\AppData\Roaming\.minecraft\libraries\net\java\dev\jna\jna\3.4.0\jna-3.4.0.jar;C:\Users\Kristian\AppData\Roaming\.minecraft\libraries\net\java\dev\jna\platform\3.4.0\platform-3.4.0.jar;C:\Users\Kristian\AppData\Roaming\.minecraft\libraries\com\ibm\icu\icu4j-core-mojang\51.2\icu4j-core-mojang-51.2.jar;C:\Users\Kristian\AppData\Roaming\.minecraft\libraries\net\sf\jopt-simple\jopt-simple\4.6\jopt-simple-4.6.jar;C:\Users\Kristian\AppData\Roaming\.minecraft\libraries\com\paulscode\codecjorbis\20101023\codecjorbis-20101023.jar;C:\Users\Kristian\AppData\Roaming\.minecraft\libraries\com\paulscode\codecwav\20101023\codecwav-20101023.jar;C:\Users\Kristian\AppData\Roaming\.minecraft\libraries\com\paulscode\libraryjavasound\20101123\libraryjavasound-20101123.jar;C:\Users\Kristian\AppData\Roaming\.minecraft\libraries\com\paulscode\librarylwjglopenal\20100824\librarylwjglopenal-20100824.jar;C:\Users\Kristian\AppData\Roaming\.minecraft\libraries\com\paulscode\soundsystem\20120107\soundsystem-20120107.jar;C:\Users\Kristian\AppData\Roaming\.minecraft\libraries\io\netty\netty-all\4.0.23.Final\netty-all-4.0.23.Final.jar;C:\Users\Kristian\AppData\Roaming\.minecraft\libraries\com\google\guava\guava\17.0\guava-17.0.jar;C:\Users\Kristian\AppData\Roaming\.minecraft\libraries\org\apache\commons\commons-lang3\3.3.2\commons-lang3-3.3.2.jar;C:\Users\Kristian\AppData\Roaming\.minecraft\libraries\commons-io\commons-io\2.4\commons-io-2.4.jar;C:\Users\Kristian\AppData\Roaming\.minecraft\libraries\commons-codec\commons-codec\1.9\commons-codec-1.9.jar;C:\Users\Kristian\AppData\Roaming\.minecraft\libraries\net\java\jinput\jinput\2.0.5\jinput-2.0.5.jar;C:\Users\Kristian\AppData\Roaming\.minecraft\libraries\net\java\jutils\jutils\1.0.0\jutils-1.0.0.jar;C:\Users\Kristian\AppData\Roaming\.minecraft\libraries\com\google\code\gson\gson\2.2.4\gson-2.2.4.jar;C:\Users\Kristian\AppData\Roaming\.minecraft\libraries\com\mojang\authlib\1.5.21\authlib-1.5.21.jar;C:\Users\Kristian\AppData\Roaming\.minecraft\libraries\com\mojang\realms\1.7.59\realms-1.7.59.jar;C:\Users\Kristian\AppData\Roaming\.minecraft\libraries\org\apache\commons\commons-compress\1.8.1\commons-compress-1.8.1.jar;C:\Users\Kristian\AppData\Roaming\.minecraft\libraries\org\apache\httpcomponents\httpclient\4.3.3\httpclient-4.3.3.jar;C:\Users\Kristian\AppData\Roaming\.minecraft\libraries\commons-logging\commons-logging\1.1.3\commons-logging-1.1.3.jar;C:\Users\Kristian\AppData\Roaming\.minecraft\libraries\org\apache\httpcomponents\httpcore\4.3.2\httpcore-4.3.2.jar;C:\Users\Kristian\AppData\Roaming\.minecraft\libraries\org\apache\logging\log4j\log4j-api\2.0-beta9\log4j-api-2.0-beta9.jar;C:\Users\Kristian\AppData\Roaming\.minecraft\libraries\org\apache\logging\log4j\log4j-core\2.0-beta9\log4j-core-2.0-beta9.jar;C:\Users\Kristian\AppData\Roaming\.minecraft\libraries\org\lwjgl\lwjgl\lwjgl\2.9.4-nightly-20150209\lwjgl-2.9.4-nightly-20150209.jar;C:\Users\Kristian\AppData\Roaming\.minecraft\libraries\org\lwjgl\lwjgl\lwjgl_util\2.9.4-nightly-20150209\lwjgl_util-2.9.4-nightly-20150209.jar;C:\Users\Kristian\AppData\Roaming\.minecraft\libraries\tv\twitch\twitch\6.5\twitch-6.5.jar;C:\Users\Kristian\AppData\Roaming\.minecraft\versions\1.8.9\1.8.9.jar
[14:30:51] [main/DEBUG] [FML/]: Java library path at launch is C:\Users\Kristian\AppData\Roaming\.minecraft\versions\1.8.9-forge1.8.9-11.15.1.1722\1.8.9-forge1.8.9-11.15.1.1722-natives-652541043774
[14:30:51] [main/DEBUG] [FML/]: Enabling runtime deobfuscation
[14:30:51] [main/DEBUG] [FML/]: Instantiating coremod class FMLCorePlugin
[14:30:51] [main/DEBUG] [FML/]: Added access transformer class net.minecraftforge.fml.common.asm.transformers.AccessTransformer to enqueued access transformers
[14:30:51] [main/DEBUG] [FML/]: Enqueued coremod FMLCorePlugin
[14:30:51] [main/DEBUG] [FML/]: Instantiating coremod class FMLForgePlugin
[14:30:51] [main/DEBUG] [FML/]: Enqueued coremod FMLForgePlugin
[14:30:51] [main/DEBUG] [FML/]: All fundamental core mods are successfully located
[14:30:51] [main/DEBUG] [FML/]: Attempting to load commandline specified mods, relative to C:\Users\Kristian\AppData\Roaming\.minecraft
[14:30:51] [main/DEBUG] [FML/]: Discovering coremods
[14:30:51] [main/DEBUG] [FML/]: Examining for coremod candidacy MinecraftGui-2.0-client.jar
[14:30:51] [main/DEBUG] [FML/]: Not found coremod data in MinecraftGui-2.0-client.jar
[14:30:51] [main/DEBUG] [FML/]: Examining for coremod candidacy slick-util.jar
[14:30:51] [main/DEBUG] [FML/]: Not found coremod data in slick-util.jar
[14:30:51] [main/DEBUG] [FML/]: Examining for coremod candidacy spongeforge-1.8.9-1691-3.1.0-BETA-1046.jar
[14:30:51] [main/INFO] [FML/]: Loading tweaker org.spongepowered.asm.launch.MixinTweaker from spongeforge-1.8.9-1691-3.1.0-BETA-1046.jar
[14:30:51] [main/INFO] [LaunchWrapper/]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[14:30:51] [main/INFO] [LaunchWrapper/]: Loading tweak class name org.spongepowered.asm.launch.MixinTweaker
[14:30:51] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.4.10 Source=file:/C:/Users/Kristian/AppData/Roaming/.minecraft/mods/spongeforge-1.8.9-1691-3.1.0-BETA-1046.jar Env=CLIENT
[14:30:51] [main/DEBUG] [mixin/]: Adding new mixin transformer proxy #1
[14:30:51] [main/DEBUG] [mixin/]: Adding mixin launch agents for container file:/C:/Users/Kristian/AppData/Roaming/.minecraft/mods/spongeforge-1.8.9-1691-3.1.0-BETA-1046.jar
[14:30:51] [main/DEBUG] [FML/]: Instantiating coremod class SpongeCoremod
[14:30:51] [main/DEBUG] [FML/]: The coremod org.spongepowered.mod.SpongeCoremod requested minecraft version 1.8.9 and minecraft is 1.8.9. It will be loaded.
[14:34:54] [main/INFO] [STDERR/]: [org.spongepowered.mod.SpongeCoremod:<init>:77]: java.lang.RuntimeException: We have detected that you are JRE version 1.8.0_25, which is out of date!
In order to run Sponge, you **must** be running JRE version 1.8.0_40 (or above).
Previous builds of JRE version 1.8 will not work with Sponge.
This can be downloaded from Oracle: http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html