title: Failed to create instance of tooling API whilst trying to import Grade project to Eclipse 2021-09
body: <p>I wanted to start creating mods for Minecraft 1.12.2 by following this <a href="https://codakid.com/guide-to-minecraft-modding-with-java/" rel="nofollow noreferrer">tutorial</a>. So I downloaded the <a href="https://files.minecraftforge.net/net/minecraftforge/forge/index_1.12.2.html" rel="nofollow noreferrer">Forge mdk for MC 1.12.2</a>, extraced the zip file and copied the contents to a separate folder. Then I launched Eclipse and clicked on import project, chose existing Gradle project, specified the location of the folder and clicked Finish. But then this error popped up:</p>
  <blockquote>
  <p>Could not create an instance of Tooling API implementation using the specified Gradle distribution 'https://services.gradle.org/distributions/gradle-4.9-bin.zip'.</p>
  </blockquote>
  <p>I have a Windows 10 machine and installed <a href="https://adoptopenjdk.net/?variant=openjdk8&amp;jvmVariant=hotspot" rel="nofollow noreferrer">this</a> JDK as I was told to do so in the tutorial. Tho when I installed eclipse the JKD 16 was selected by default as VM and as you can see in <a href="https://i.stack.imgur.com/oQIFk.jpg" rel="nofollow noreferrer">this</a> screenshot below the installed didn't let me choose JDK 8. I don't know if that might be the issue nor how to fix it. Maybe I'd have to use Eclipse 2020, but I'd prefer not to.</p>
  <p>Now I looked at the gradle linke and found that changing the version might fix the problem. But then why would forge itself have a non working link in their gradle project. And if that's the issue I have no clue which gradle version to use.</p>
  <p>Ressources I read but didn't help:</p>
  <ol>
  <li><a href="https://stackoverflow.com/questions/66506535/eclipse-minecraft-error-when-importing-gradle">Eclipse/Minecraft error when importing gradle</a> --&gt; I deleted the folder and it didn't let me start eclipse again. With <a href="https://i.stack.imgur.com/fruMX.jpg" rel="nofollow noreferrer">this</a> message</li>
  <li><a href="https://stackoverflow.com/questions/63461573/trying-to-mod-mc-forge-1-12-2-but-setupdecompworkspace-not-working">Trying to mod MC Forge 1.12.2, but SetupDecompWorkspace not working</a> --&gt; Errors while running the commands.</li>
  <li><a href="https://stackoverflow.com/questions/64613713/deprecated-gradle-features-were-used-in-this-build-making-it-incompatible-with">Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0 with Minecraft Forge 1.12.2</a> --&gt; Issue seems unrelated but solution is a bit what I excpected my solution to be like. Tho no explanation on how to solve it.</li>
  </ol>