question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to launch OptiFine 1.18

See original GitHub issue

Version json: https://www.toptal.com/developers/hastebin/efedakeqes.json Note: I changed invalid OptiFine libraries’ links to valid ones from our custom server.

Options:

const otps: ILauncherOptions = {
  root: <root path>,
  version: {
    custom: "OptiFine 1.18"
  },
  authorization: getAuth(),
  memory: {
    min: "4G",
    max: "6G"
  }
};

const getAuth = async (): Promise<IUser> => {
 return {
   access_token: '',
   client_token: '',
   uuid: 'e63d3652-1822-4986-9e87-344f4d340878',
   name: 'H4kt',
   user_properties: undefined,
   meta: {
     type: 'msa',
     demo: false,
   }
 }
}

Error log:

[MCLC]: MCLC version 3.16.13
[MCLC]: Using Java version 17.0.3.1 64-bit
[MCLC]: Downloaded and extracted natives
[MCLC]: Set native path to C:\Users\H4kt\Desktop\test\natives\1.18
[MCLC]: Detected custom in options, setting custom version file
[MCLC]: Collected class paths
[MCLC]: Using ; to separate class paths
[MCLC]: Attempting to download assets
[MCLC]: Downloaded assets
[MCLC]: Set launch options
[MCLC]: Launching with arguments -XX:-UseAdaptiveSizePolicy -XX:-OmitStackTraceInFastThrow -Dfml.ignorePatchDiscrepancies=true -Dfml.ignoreInvalidMinecraftCertificates=true -Djava.library
.path=C:\Users\H4kt\Desktop\test\natives\1.18 -Xmx6G -Xms4G -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -cp C:\Users\H4kt\Desktop\test\librari
es\com\mojang\blocklist\1.0.6\blocklist-1.0.6.jar;C:\Users\H4kt\Desktop\test\libraries\com\mojang\patchy\2.1.6\patchy-2.1.6.jar;C:\Users\H4kt\Desktop\test\libraries\optifine\launchwrapper
\2.3\launchwrapper-2.3.jar;C:\Users\H4kt\Desktop\test\libraries\com\github\oshi\oshi-core\5.8.2\oshi-core-5.8.2.jar;C:\Users\H4kt\Desktop\test\libraries\net\java\dev\jna\jna\5.9.0\jna-5.9
.0.jar;C:\Users\H4kt\Desktop\test\libraries\net\java\dev\jna\jna-platform\5.9.0\jna-platform-5.9.0.jar;C:\Users\H4kt\Desktop\test\libraries\org\slf4j\slf4j-api\1.8.0-beta4\slf4j-api-1.8.0
-beta4.jar;C:\Users\H4kt\Desktop\test\libraries\org\apache\logging\log4j\log4j-slf4j18-impl\2.14.1\log4j-slf4j18-impl-2.14.1.jar;C:\Users\H4kt\Desktop\test\libraries\com\mojang\javabridge
\1.2.24\javabridge-1.2.24.jar;C:\Users\H4kt\Desktop\test\libraries\optifine\OptiFine\1.18_HD_U_H3\OptiFine-1.18_HD_U_H3.jar;C:\Users\H4kt\Desktop\test\libraries\net\sf\jopt-simple\jopt-si
mple\5.0.4\jopt-simple-5.0.4.jar;C:\Users\H4kt\Desktop\test\libraries\io\netty\netty-all\4.1.68.Final\netty-all-4.1.68.Final.jar;C:\Users\H4kt\Desktop\test\libraries\com\ibm\icu\icu4j\69.
1\icu4j-69.1.jar;C:\Users\H4kt\Desktop\test\libraries\com\google\guava\failureaccess\1.0.1\failureaccess-1.0.1.jar;C:\Users\H4kt\Desktop\test\libraries\org\apache\commons\commons-lang3\3.
12.0\commons-lang3-3.12.0.jar;C:\Users\H4kt\Desktop\test\libraries\com\google\guava\guava\31.0.1-jre\guava-31.0.1-jre.jar;C:\Users\H4kt\Desktop\test\libraries\commons-io\commons-io\2.11.0
\commons-io-2.11.0.jar;C:\Users\H4kt\Desktop\test\libraries\commons-codec\commons-codec\1.15\commons-codec-1.15.jar;C:\Users\H4kt\Desktop\test\libraries\com\mojang\brigadier\1.0.18\brigad
ier-1.0.18.jar;C:\Users\H4kt\Desktop\test\libraries\com\mojang\datafixerupper\4.0.26\datafixerupper-4.0.26.jar;C:\Users\H4kt\Desktop\test\libraries\com\google\code\gson\gson\2.8.8\gson-2.
8.8.jar;C:\Users\H4kt\Desktop\test\libraries\com\mojang\authlib\3.2.38\authlib-3.2.38.jar;C:\Users\H4kt\Desktop\test\libraries\org\apache\commons\commons-compress\1.21\commons-compress-1.
21.jar;C:\Users\H4kt\Desktop\test\libraries\org\apache\httpcomponents\httpclient\4.5.13\httpclient-4.5.13.jar;C:\Users\H4kt\Desktop\test\libraries\commons-logging\commons-logging\1.2\comm
ons-logging-1.2.jar;C:\Users\H4kt\Desktop\test\libraries\org\apache\httpcomponents\httpcore\4.4.14\httpcore-4.4.14.jar;C:\Users\H4kt\Desktop\test\libraries\org\apache\logging\log4j\log4j-
api\2.14.1\log4j-api-2.14.1.jar;C:\Users\H4kt\Desktop\test\libraries\org\apache\logging\log4j\log4j-core\2.14.1\log4j-core-2.14.1.jar;C:\Users\H4kt\Desktop\test\libraries\org\lwjgl\lwjgl\
3.2.2\lwjgl-3.2.2.jar;C:\Users\H4kt\Desktop\test\libraries\org\lwjgl\lwjgl-jemalloc\3.2.2\lwjgl-jemalloc-3.2.2.jar;C:\Users\H4kt\Desktop\test\libraries\org\lwjgl\lwjgl-openal\3.2.2\lwjgl-
openal-3.2.2.jar;C:\Users\H4kt\Desktop\test\libraries\org\lwjgl\lwjgl-opengl\3.2.2\lwjgl-opengl-3.2.2.jar;C:\Users\H4kt\Desktop\test\libraries\org\lwjgl\lwjgl-glfw\3.2.2\lwjgl-glfw-3.2.2.
jar;C:\Users\H4kt\Desktop\test\libraries\org\lwjgl\lwjgl-stb\3.2.2\lwjgl-stb-3.2.2.jar;C:\Users\H4kt\Desktop\test\libraries\org\lwjgl\lwjgl-tinyfd\3.2.2\lwjgl-tinyfd-3.2.2.jar;C:\Users\H4
kt\Desktop\test\libraries\it\unimi\dsi\fastutil\8.5.6\fastutil-8.5.6.jar;C:\Users\H4kt\Desktop\test\libraries\com\mojang\text2speech\1.11.3\text2speech-1.11.3.jar;C:\Users\H4kt\Desktop\te
st\versions\OptiFine 1.18\OptiFine 1.18.jar net.minecraft.launchwrapper.Launch --username H4kt --version 1.18 --gameDir C:\Users\H4kt\Desktop\test --assetsDir C:\Users\H4kt\Desktop\test\assets --assetIndex 1.18 --uuid e63d3652-1822-4986-9e87-344f4d340878 --accessToken  --clientId  --xuid  --userType msa --versionType release
Launched game in 0.73695 min
[02:27:01] [main/INFO]: Loading tweak class name net.minecraft.launchwrapper.VanillaTweaker

[02:27:01] [main/ERROR]: Unable to launch
java.lang.ClassNotFoundException: net.minecraft.launchwrapper.VanillaTweaker
        at jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641) ~[?:?]
        at jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188) ~[?:?]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?]
        at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:104) ~[launchwrapper-2.3.jar:2.3]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:587) ~[?:?]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?]
        at java.lang.Class.forName0(Native Method) ~[?:?]
        at java.lang.Class.forName(Class.java:467) ~[?:?]
        at net.minecraft.launchwrapper.Launch.launch(Launch.java:122) [launchwrapper-2.3.jar:2.3]
        at net.minecraft.launchwrapper.Launch.main(Launch.java:30) [launchwrapper-2.3.jar:2.3]

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
H4ktcommented, Jul 22, 2022

Mojang launcher seems to have no issues when launching it

0reactions
Pierce01commented, Jul 25, 2022

Hey H4kt, would you be able to join the Discord and shoot me a message? I’d like to collect more information so I can work on this issue.

If you don’t want to join the discord, my tag is Pierce#2657.

Read more comments on GitHub >

github_iconTop Results From Across the Web

4 Ways to Fix OptiFine Installer Not Working Issue
Fix 2. Perform Correct OptiFine Installation Process · Make sure you have Java installed. · Please install the most recent version of Minecraft....
Read more >
Cant open optifine, problem with java. : r/Minecraft - Reddit
Place the Optifine installer in a folder. · Shift-Right-Click on the file, and choose "Open command window here..." Picture · Use the following ......
Read more >
[Crash] Can't launch Optifine with Forge 1.18.2 - 40.1.54 or ...
I have already noticed when updating the Forge version of my modpack (required for some mods) that Optifine crashes my game when I...
Read more >
How to Install OptiFine in Minecraft 1.18.1 - Beebom
If you are unable to locate it, paste this address – %appdata%\.minecraft\mods in your Explorer address bar or in the Run window. You...
Read more >
Optifine Won't Open! - Java Edition Support - Minecraft Forum
I was recently attempting to open and install the Optifine .jar file for Java edition 1.14, and it failed every time.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found