Minecraft: Installing Forge Without Installing Java

I recently got a new computer that my son wanted to play Minecraft on. Minecraft requires the Java runtime to be installed but with it’s memory, security and updating issues Java was one headache I didn’t want to have on this new machine. Lucky for me Mojang recently created a new version of their Minecraft launcher that includes it’s own version of Java. This version is isolated in the Minecraft installation directory and does not require installing Java on it’s own.

But then my son asked me about mods. He’s always used Forge for mods but when I tried installing Forge I got an error sayin that Java must be installed to run the Forge installer. So now I was back to my original Java problem: how do I install something that requires Java without installing the Java runtime?

The answer turned out to be quite simple: leverage the version of Java that was installed with Minecraft. Here’s how to do it in Windows 10. I’m sure Mac OSX is similar. Remember that before running a Forge installer fo any version of Minecraft you must first run that version of Minecraft on your machine.

  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.

This will run the Forge installer. The rest of the details of how to complete the Forge install are well documented in other places so I won’t repeat them here.

Tags: ,

If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

Comments

I have tried this method, but it always says that the specified path was incorrect. Can you help me?

Odds are that your path is different or it has a typo. Check to be sure.

You can also get VoidLauncher using this method by downloading the cross platform.

Thank you so much!!! It worked

Uhhmmm can u make this easyer?

What exactly do you not understand? Ask a specific question and I’ll give you the best answer I can.

Well mayby you could make the sections a bit more easyer to see

OOOOKKK i’m trying to do it agin

worked a treat, thanks dave

For anyone trying this on a Mac, the appropriate command to issue in Terminal is something like:

/Applications/Minecraft.app/Contents/runtime/jre-x64/1.8.0_74/bin/java -jar <>

Correction to previous comment – put the path to the downloaded jar file after -jar, e.g.:

/Applications/Minecraft.app/Contents/runtime/jre-x64/1.8.0_74/bin/java -jar ~/Downloads/forge-1.12.2-14.23.0.2491-installer.jar

Hi Dave I have a problem. How do i get the directory on windows? The one I put was yours and it said path was incorrect can you please help

The directory path may be different on different machines. You’ll have to do some detective work on your end to see exactly what it is on your machine. I believe the \Minecraft\runtime\ part should be the same on all Windows machines.

Following these directions on a Mac I get “No Java runtime present, requesting install” and then a system dialog asking me to install Java. But isn’t the java binary right here in that Minecraft folder a runtime? I’m confused. Help?

On a Mac, which is UNIX-based, the syntax is slightly different. If you navigate to the bin directory and try to run java from there, you need to use the ./ syntax like:

./java -jar forge-1.7.10-10.13.4.1614-1.7.10-installer.jar

If you don’t navigate to the bin directory (which you don’t have to do), you can just use full paths and it works fine:

/Applications/Minecraft.app/Contents/runtime/jre-x64/1.8.0_74/bin/java -jar ~/Downloads/forge-1.12.2-14.23.0.2491-installer.jar

Thanks so much for this guide! I hope this additional info helps some people.

Leave a comment

(required)

(required)