Installing optifine for minecraft 1.16.4

I recently downloaded optifine 1.16.4_HD_U_G5, and OpenJDK on my laptop, I can run it but it sais that it cant find Minecraft 1.16 in the /.minecraft directory, I looked into the directory via terminal and there is nothing there…how do i fix this?

You would need to manually set the target destination for Optifine, as it normally is installed on Windows or Mac.
It should go in the .jar file of the Mods folder.

Where do I find the directory for minecraft, or any apps really, when i right click them and choose edit application it doesnt have anything in the directory section. So where do I find files for applications (Im a newbie on linux btw)

I do not know as I do not play Minecraft, but in Linux, you can find files, directories or folders using the locate command in terminal.
For example, let's say I want to find a directory called "Chimpanzee-Recipies".
In terminal, I would use locate:

locate chimpanzee-recipies

It may also be that you have Minecraft installed as a Windows App using WINE. You can look in your home folder for ~/.wine, then look in the virtual 'c:' drive and follow the path to look for Minecraft folders, there.

I found ‘minecraft installer’ in the snap directory, but i’m not sure which subdirectory to intstall/extract into, I have found a .jar file in the /1.16.4 directory, but there is no way i can access the .jar files without opening it, which opens archive manager.

Hi! How did you open OptiFine (jar) with Java, please? It does not show the Java option, but i have openjdk version "21.0.10" installed.

Via terminal like
java -jar /distination/filename.jar

1 Like

Thank you! I did that, but i cannot see the "install" button or something like that. I want to install OptiFine (jar) opening with Java, as the tutorial said. Can you help me with that, please? I've been searching everywhere. Thanks!

In "Properties" doesnt show the "Allow executing file as program". Im trying to solve that.

I'm unfamiliar with that app. Take some screenshot and describe. :slight_smile:

1 Like

You can install Java from your software store too, or via a command but I don't know what system you are using.

If you want to use it as a mod, you'll need Forge. You can download and install forge the exact same way as OptiFine by launching the file. And then you move the OptiFine file in the mods folder in the minecraft directory.

qouted from: https://www.reddit.com/r/Optifine/comments/1issr2j/cant_install_optifine_on_linux_im_new_to_linux/

1 Like

Oh sorry! I'll attach a photo of my Software Information. Plus, actually im trying to use the Resource Pack for Minecraft version 26.1. The tutorial says that i may need OptiFine installed, so:

  1. I installed 'openjdk version "21.0.10" 2026-01-20...
  2. To open the OptiFine .jar and install it...
  3. And then finally continue to install that resource pack for minecraft.

(I got stuck in the second option :sweat_smile:)

SOFTWARE INFORMATION:

PLUS:

(I try to open with Java so i can install OptFine, but there's no option)

Thank you for your help! Im also doing my part and searching from here.

Ah you need the terminal for this. Open the terminal;

cd Desktop
java -jar filename.jar

filename should be the name of the package.

1 Like

I tried the installation and got an error message. Perhaps because I have no account for minecraft, but minecraft is installed (I'm in a live session of Zorin 18).

2 Likes

It worked!! Thank you so much @Storm

1 Like

Mine too! Maybe its because the versions are different

Perhaps you would need optifine for minecraft 26.1 and not for minecraft 1.21. But I don't know how to get it. That one seems to be old.

1 Like