fabric-loader icon indicating copy to clipboard operation
fabric-loader copied to clipboard

RuntimeException: Minecraft game provider couldn't locate the game! The game may be absent from the class path, lacks some expected files, suffers from jar corruption or is of an unsupported variety/version.

Open justlofe opened this issue 3 years ago • 2 comments

I made myself a launcher and ran into a problem: Fabric does not start. Error: java.lang.RuntimeException: Minecraft game provider couldn't locate the game! The game may be absent from the class path, lacks some expected files, suffers from jar corruption or is of an unsupported variety/version. at net.fabricmc.loader.impl.launch.knot.Knot.createGameProvider(Knot.java:209) at net.fabricmc.loader.impl.launch.knot.Knot.init(Knot.java:125) at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:71) at net.fabricmc.loader.launch.knot.KnotClient.main(KnotClient.java:28) at launcher.KeEperjeRrYrnh.keepErJErRy6HE(SourceFile:361) at launcher.KeEperjeRrYrnh.main(SourceFile:220)

justlofe avatar Jan 11 '22 10:01 justlofe

It seems that your launcher works by adding every jar to the class loader, which didn't cause to update the java.class.path property. Fabric Loader uses this property to find the client.jar. Adding client.jar path to the java.class.path property should fix this, or you can also specify client.jar path with the fabric.gameJarPath property.

khanhduytran0 avatar Feb 05 '22 10:02 khanhduytran0

Maybe double check your Fabric Jar isn’t empty (0kb). I had that problem today.

MayorBryce avatar Aug 19 '22 23:08 MayorBryce

👋 We use the issue tracker exclusively for final bug reports and feature requests. However, this issue appears to be better suited for either a discussion thread, or a message on our discord server. Please post your request on one of these, and the conversation can continue there.

github-actions[bot] avatar Feb 05 '23 21:02 github-actions[bot]

So what was the solution and what did you exactly do? I’m having the same issue

Idiotischer avatar Jan 24 '24 20:01 Idiotischer

So what was the solution and what did you exactly do? I’m having the same issue

If I remember correctly, you have to download the vanilla version of the version of Minecraft you want before you can install Fabric. Hope that helps.

MayorBryce avatar Jan 24 '24 20:01 MayorBryce