Jump to content
  • 0

Can't start with Java 9


Erkam

Question

4 answers to this question

Recommended Posts

  • 0
  • Forum Administrators
5 hours ago, Erkam said:

I upgradet my java to java 9 and try to starting the launcher i get a message like this: This application requires a java runtime environment 1.5.0

Please Update launcher to Java 9

Downgrade to Java 8. Forge nor Minecraft support Java 9. So even if the launcher supported it you wouldn't be able to run anything.

Link to comment
Share on other sites

  • 0

I was looking into exactly why this happens, digging deep into the source code of Launch4J which the technic launcher uses, and I found that Java 9 uses a different registry key than Java 8 did, which makes Launch4J think you don't have java. This is fixed in a new version of Launch4J, but the technic launcher does not use this version. To work around this, follow these steps:

  1. Open Registry Editor. (Windows key + R, type "regedit" then enter).
  2. Go here: HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\
  3. Right click JRE and click Export. Save the file somewhere.
  4. Find the file, right click it, and click Edit.
  5. Notepad should appear. Press Ctrl-H for replace, and replace "JRE" with "Java Runtime Environment". Make sure match case is on.
  6. Your file should look like the file below, with some version numbers changed, with it being okay if the MSI section is missing. If it does look like below, press ctrl-S to save and continue to the next step.
  7. Double click the file, and click yes to both prompts.
  8. Open the technic launcher.
  9. Tada!

What my file looked like:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment]
"CurrentVersion"="9.0.4"
"BrowserJavaVersion"="12.0.4.0"

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\9.0.4]
"JavaHome"="C:\\Program Files\\Java\\jre-9.0.4"
"RuntimeLib"="C:\\Program Files\\Java\\jre-9.0.4\\bin\\server\\jvm.dll"

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\9.0.4\MSI]
"INSTALLDIR"="C:\\Program Files\\Java\\jre-9.0.4\\"
"JU"=""
"OEMUPDATE"=""
"FROMVERSION"="NA"
"PRODUCTVERSION"="9.0.4.0"
"EULA"=""
"JAVAUPDATE"="1"
"AUTOUPDATECHECK"="1"
"AUTOUPDATEDELAY"=""
"FullVersion"="9.0.4+11"

Hope this helps!

Link to comment
Share on other sites

  • 0
11 hours ago, ungato said:

I was looking into exactly why this happens, digging deep into the source code of Launch4J which the technic launcher uses, and I found that Java 9 uses a different registry key than Java 8 did, which makes Launch4J think you don't have java. This is fixed in a new version of Launch4J, but the technic launcher does not use this version. To work around this, follow these steps:

  1. Open Registry Editor. (Windows key + R, type "regedit" then enter).
  2. Go here: HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\
  3. Right click JRE and click Export. Save the file somewhere.
  4. Find the file, right click it, and click Edit.
  5. Notepad should appear. Press Ctrl-H for replace, and replace "JRE" with "Java Runtime Environment". Make sure match case is on.
  6. Your file should look like the file below, with some version numbers changed, with it being okay if the MSI section is missing. If it does look like below, press ctrl-S to save and continue to the next step.
  7. Double click the file, and click yes to both prompts.
  8. Open the technic launcher.
  9. Tada!

What my file looked like:

Hope this helps!

While this would fix launcher start issues, it is still impossible to start any modpacks, or minecraft itself.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...