Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"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." #1002

Open
thorminate opened this issue Nov 29, 2024 · 3 comments

Comments

@thorminate
Copy link

Hi, i am trying to make a mod and when i run it it gives me this error. The "run" folder is empty.

@burningtnt
Copy link

Please provide the completed log in your IDE (e.g. Jetbrains IDLE). Without these info, we can't find out what was going wrong.

@ForestRealms
Copy link

ForestRealms commented Jan 3, 2025

Please provide the completed log in your IDE (e.g. Jetbrains IDLE). Without these info, we can't find out what was going wrong.

I encountered the same issue, I am developing a Fabric mod and when I try to run the "Minecraft Client" in IntelliJ IDEA, I get the following error:

Uncaught exception in thread "main"
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:212)
    at net.fabricmc.loader.impl.launch.knot.Knot.init(Knot.java:130)
    at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:68)
    at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
    at net.fabricmc.devlaunchinjector.Main.main(Main.java:86)

and then I check the run folder in project, the file fabricloader.log:

[15:33:05] [WARN] [FabricLoader/Knot]: Class path entries reference missing files: E:\Java-Project\Fabric妯$粍\EnhancedFireworks-1.21.4\build\classes\java\main, E:\Java-Project\Fabric妯$粍\EnhancedFireworks-1.21.4\build\resources\main, E:\Java-Project\Fabric妯$粍\EnhancedFireworks-1.21.4\.gradle\loom-cache\minecraftMaven\net\minecraft\minecraft-merged-abba00472f\1.21.4-net.fabricmc.yarn.1_21_4.1.21.4+build.7-v2\minecraft-merged-abba00472f-1.21.4-net.fabricmc.yarn.1_21_4.1.21.4+build.7-v2.jar, E:\Java-Project\Fabric妯$粍\EnhancedFireworks-1.21.4\.gradle\loom-cache\remapped_mods\net_fabricmc_yarn_1_21_4_1_21_4_build_7_v2\net\fabricmc\fabric-api\fabric-api\0.114.0+1.21.4\fabric-api-0.114.0+1.21.4.jar, E:\Java-Project\Fabric妯$粍\EnhancedFireworks-1.21.4\.gradle\loom-cache\remapped_mods\net_fabricmc_yarn_1_21_4_1_21_4_build_7_v2\net\fabricmc\fabric-api\fabric-transfer-api-v1\5.4.9+efa825c904\fabric-transfer-api-v1-5.4.9+efa825c904.jar, E:\Java-Project\Fabric妯$粍\EnhancedFireworks-1.21.4\.gradle\loom-cache\remapped_mods\net_fabricmc_yarn_1_21_4_1_21_4_build_7_v2\net\fabricmc\fabric-api\fabric-api-lookup-api-v1\1.6.86+b1caf1e904\fabric-api-lookup-api-v1-1.6.86+b1caf1e904.jar, E:\Java-Project\Fabric妯$粍\EnhancedFireworks-1.21.4\.gradle\loom-cache\remapped_mods\net_fabricmc_yarn_1_21_4_1_21_4_build_7_v2\net\fabricmc\fabric-api\fabric-blockrenderlayer-v1\2.0.8+7feeb73304\fabric-blockrenderlayer-v1-2.0.8+7feeb73304.jar, E:\Java-Project\Fabric妯$粍\EnhancedFireworks-1.21.4\.gradle\loom-cache\remapped_mods\net_fabricmc_yarn_1_21_4_1_21_4_build_7_v2\net\fabricmc\fabric-api\fabric-client-tags-api-v1\1.1.29+20ea1e2304\fabric-client-tags-api-v1-1.1.29+20ea1e2304.jar, E:\Java-Project\Fabric妯$粍\EnhancedFireworks-1.21.4\.gradle\loom-cache\remapped_mods\net_fabricmc_yarn_1_21_4_1_21_4_build_7_v2\net\fabricmc\fabric-api\fabric-command-api-v1\1.2.62+f71b366f04\fabric-command-api-v1-1.2.62+f71b366f04.jar, E:\Java-Project\Fabric妯$粍\EnhancedFireworks-1.21.4\.gradle\loom-cache\remapped_mods\net_fabricmc_yarn_1_21_4_1_21_4_build_7_v2\net\fabricmc\fabric-api\fabric-commands-v0\0.2.79+df3654b304\fabric-commands-v0-0.2.79+df3654b304.jar, E:\Java-Project\Fabric妯$粍\EnhancedFireworks-1.21.4\.gradle\loom-cache\remapped_mods\net_fabricmc_yarn_1_21_4_1_21_4_build_7_v2\net\fabricmc\fabric-api\fabric-command-api-v2\2.2.41+e496eb1504\fabric-command-api-v2-2.2.41+e496eb1504.jar, E:\Java-Project\Fabric妯$粍\EnhancedFireworks-1.21.4\.gradle\loom-cache\remapped_mods\net_fabricmc_yarn_1_21_4_1_21_4_build_7_v2\net\fabricmc\fabric-api\fabric-content-registries-v0\9.1.14+7feeb73304\fabric-content-registries-v0-9.1.14+7feeb73304.jar, E:\Java-Project\Fabric妯$粍\EnhancedFireworks-1.21.4\.gradle\loom-cache\remapped_mods\net_fabricmc_yarn_1_21_4_1_21_4_build_7_v2\net\fabricmc\fabric-api\fabric-data-generation-api-v1\22.2.4+20ea1e2304\fabric-data-generation-api-v1-22.2.4+20ea1e2304.jar, E:\Java-Project\Fabric妯$粍\EnhancedFireworks-1.21.4\.gradle\loom-cache\remapped_mods\net_fabricmc_yarn_1_21_4_1_21_4_build_7_v2\net\fabricmc\fabric-api\fabric-convention-tags-v1\2.1.11+7f945d5b04\fabric-convention-tags-v1-2.1.11+7f945d5b04.jar, E:\Java-Project\Fabric妯$粍\EnhancedFireworks-1.21.4\.gradle\loom-cache\remapped_mods\net_fabricmc_yarn_1_21_4_1_21_4_build_7_v2\net\fabricmc\fabric-api\fabric-convention-tags-v2\2.10.1+e7d3c6e504\fabric-convention-tags-v2-2.10.1+e7d3c6e504.jar, E:\Java-Project\Fabric妯$粍\EnhancedFireworks-1.21.4\.gradle\loom-cache\remapped_mods\net_fabricmc_yarn_1_21_4_1_21_4_build_7_v2\net\fabricmc\fabric-api\fabric-data-attachment-api-v1\1.4.6+9aea556b04\fabric-data-attachment-api-v1-1.4.6+9aea556b04.jar, E:\Java-Project\Fabric妯$粍\EnhancedFireworks-1.21.4\.gradle\loom-cache\remapped_mods\net_fabricmc_yarn_1_21_4_1_21_4_build_7_v2\net\fabricmc\fabric-api\fabric-entity-events-v1\2.0.12+60fccc7604\fabric-entity-events-v1-2.0.12+60fccc7604.jar, E:\Java-Project\Fabric妯$粍\EnhancedFireworks-1.21.4\.gradle\loom-cache\remapped_mods\net_fabricmc_yarn_1_21_4_1_21_4_build_7_v2\net\fabricmc\fabric-api\fabric-events-interaction-v0\4.0.2+a4eebcf004\fabric-events-interaction-v0-4.0.2+a4eebcf004.jar, E:\Java-Project\Fabric妯$粍\EnhancedFireworks-1.21.4\.gradle\loom-cache\remapped_mods\net_fabricmc_yarn_1_21_4_1_21_4_build_7_v2\net\fabricmc\fabric-api\fabric-gametest-api-v1\2.0.21+7feeb73304\fabric-gametest-api-v1-2.0.21+7feeb73304.jar, E:\Java-Project\Fabric妯$粍\EnhancedFireworks-1.21.4\.gradle\loom-cache\remapped_mods\net_fabricmc_yarn_1_21_4_1_21_4_build_7_v2\net\fabricmc\fabric-api\fabric-item-api-v1\11.1.14+203e6b2304\fabric-item-api-v1-11.1.14+203e6b2304.jar, E:\Java-Project\Fabric妯$粍\EnhancedFireworks-1.21.4\.gradle\loom-cache\remapped_mods\net_fabricmc_yarn_1_21_4_1_21_4_build_7_v2\net\fabricmc\fabric-api\fabric-item-group-api-v1\4.1.23+7feeb73304\fabric-item-group-api-v1-4.1.23+7feeb73304.jar, E:\Java-Project\Fabric妯$粍\EnhancedFireworks-1.21.4\.gradle\loom-cache\remapped_mods\net_fabricmc_yarn_1_21_4_1_21_4_build_7_v2\net\fabricmc\fabric-api\fabric-lifecycle-events-v1\2.5.4+bf2a60eb04\fabric-lifecycle-events-v1-2.5.4+bf2a60eb04.jar, E:\Java-Project\Fabric妯$粍\EnhancedFireworks-1.21.4\.gradle\loom-cache\remapped_mods\net_fabricmc_yarn_1_21_4_1_21_4_build_7_v2\net\fabricmc\fabric-api\fabric-loot-api-v2\3.0.33+3f89f5a504\fabric-loot-api-v2-3.0.33+3f89f5a504.jar, E:\Java-Project\Fabric妯$粍\EnhancedFireworks-1.21.4\.gradle\loom-cache\remapped_mods\net_fabricmc_yarn_1_21_4_1_21_4_build_7_v2\net\fabricmc\fabric-api\fabric-loot-api-v3\1.0.21+203e6b2304\fabric-loot-api-v3-1.0.21+203e6b2304.jar, E:\Java-Project\Fabric妯$粍\EnhancedFireworks-1.21.4\.gradle\loom-cache\remapped_mods\net_fabricmc_yarn_1_21_4_1_21_4_build_7_v2\net\fabricmc\fabric-api\fabric-message-api-v1\6.0.25+7feeb73304\fabric-message-api-v1-6.0.25+7feeb73304.jar, E:\Java-Project\Fabric妯$粍\EnhancedFireworks-1.21.4\.gradle\loom-cache\remapped_mods\net_fabricmc_yarn_1_21_4_1_21_4_build_7_v2\net\fabricmc\fabric-api\fabric-model-loading-api-v1\4.2.0+8ca2ae8d04\fabric-model-loading-api-v1-4.2.0+8ca2ae8d04.jar, E:\Java-Project\Fabric妯$粍\EnhancedFireworks-1.21.4\.gradle\loom-cache\remapped_mods\net_fabricmc_yarn_1_21_4_1_21_4_build_7_v2\net\fabricmc\fabric-api\fabric-recipe-api-v1\8.0.6+9ceeb58c04\fabric-recipe-api-v1-8.0.6+9ceeb58c04.jar, E:\Java-Project\Fabric妯$粍\EnhancedFireworks-1.21.4\.gradle\loom-cache\remapped_mods\net_fabricmc_yarn_1_21_4_1_21_4_build_7_v2\net\fabricmc\fabric-api\fabric-screen-handler-api-v1\1.3.110+7feeb73304\fabric-screen-handler-api-v1-1.3.110+7feeb73304.jar, E:\Java-Project\Fabric妯$粍\EnhancedFireworks-1.21.4\.gradle\loom-cache\remapped_mods\net_fabricmc_yarn_1_21_4_1_21_4_build_7_v2\net\fabricmc\fabric-api\fabric-registry-sync-v0\6.1.3+e7d3c6e504\fabric-registry-sync-v0-6.1.3+e7d3c6e504.jar, E:\Java-Project\Fabric妯$粍\EnhancedFireworks-1.21.4\.gradle\loom-cache\remapped_mods\net_fabricmc_yarn_1_21_4_1_21_4_build_7_v2\net\fabricmc\fabric-api\fabric-networking-api-v1\4.3.9+f371ccb904\fabric-networking-api-v1-4.3.9+f371ccb904.jar, E:\Java-Project\Fabric妯$粍\EnhancedFireworks-1.21.4\.gradle\loom-cache\remapped_mods\net_fabricmc_yarn_1_21_4_1_21_4_build_7_v2\net\fabricmc\fabric-api\fabric-object-builder-api-v1\18.0.8+d70d2c0604\fabric-object-builder-api-v1-18.0.8+d70d2c0604.jar, E:\Java-Project\Fabric妯$粍\EnhancedFireworks-1.21.4\.gradle\loom-cache\remapped_mods\net_fabricmc_yarn_1_21_4_1_21_4_build_7_v2\net\fabricmc\fabric-api\fabric-particles-v1\4.0.14+7feeb73304\fabric-particles-v1-4.0.14+7feeb73304.jar, E:\Java-Project\Fabric妯$粍\EnhancedFireworks-1.21.4\.gradle\loom-cache\remapped_mods\net_fabricmc_yarn_1_21_4_1_21_4_build_7_v2\net\fabricmc\fabric-api\fabric-renderer-indigo\2.0.2+84404cdd04\fabric-renderer-indigo-2.0.2+84404cdd04.jar, E:\Java-Project\Fabric妯$粍\EnhancedFireworks-1.21.4\.gradle\loom-cache\remapped_mods\net_fabricmc_yarn_1_21_4_1_21_4_build_7_v2\net\fabricmc\fabric-api\fabric-renderer-api-v1\5.0.2+84404cdd04\fabric-renderer-api-v1-5.0.2+84404cdd04.jar, E:\Java-Project\Fabric妯$粍\EnhancedFireworks-1.21.4\.gradle\loom-cache\remapped_mods\net_fabricmc_yarn_1_21_4_1_21_4_build_7_v2\net\fabricmc\fabric-api\fabric-rendering-fluids-v1\3.1.19+7feeb73304\fabric-rendering-fluids-v1-3.1.19+7feeb73304.jar, E:\Java-Project\Fabric妯$粍\EnhancedFireworks-1.21.4\.gradle\loom-cache\remapped_mods\net_fabricmc_yarn_1_21_4_1_21_4_build_7_v2\net\fabricmc\fabric-api\fabric-rendering-v1\10.1.2+b874120c04\fabric-rendering-v1-10.1.2+b874120c04.jar, E:\Java-Project\Fabric妯$粍\EnhancedFireworks-1.21.4\.gradle\loom-cache\remapped_mods\net_fabricmc_yarn_1_21_4_1_21_4_build_7_v2\net\fabricmc\fabric-api\fabric-screen-api-v1\2.0.38+7feeb73304\fabric-screen-api-v1-2.0.38+7feeb73304.jar, E:\Java-Project\Fabric妯$粍\EnhancedFireworks-1.21.4\.gradle\loom-cache\remapped_mods\net_fabricmc_yarn_1_21_4_1_21_4_build_7_v2\net\fabricmc\fabric-api\fabric-tag-api-v1\1.0.2+20ea1e2304\fabric-tag-api-v1-1.0.2+20ea1e2304.jar, E:\Java-Project\Fabric妯$粍\EnhancedFireworks-1.21.4\.gradle\loom-cache\remapped_mods\net_fabricmc_yarn_1_21_4_1_21_4_build_7_v2\net\fabricmc\fabric-api\fabric-api-base\0.4.54+b47eab6b04\fabric-api-base-0.4.54+b47eab6b04.jar, E:\Java-Project\Fabric妯$粍\EnhancedFireworks-1.21.4\.gradle\loom-cache\remapped_mods\net_fabricmc_yarn_1_21_4_1_21_4_build_7_v2\net\fabricmc\fabric-api\fabric-biome-api-v1\15.0.6+b1c29d8e04\fabric-biome-api-v1-15.0.6+b1c29d8e04.jar, E:\Java-Project\Fabric妯$粍\EnhancedFireworks-1.21.4\.gradle\loom-cache\remapped_mods\net_fabricmc_yarn_1_21_4_1_21_4_build_7_v2\net\fabricmc\fabric-api\fabric-block-api-v1\1.0.31+7feeb73304\fabric-block-api-v1-1.0.31+7feeb73304.jar, E:\Java-Project\Fabric妯$粍\EnhancedFireworks-1.21.4\.gradle\loom-cache\remapped_mods\net_fabricmc_yarn_1_21_4_1_21_4_build_7_v2\net\fabricmc\fabric-api\fabric-rendering-data-attachment-v1\0.3.57+73761d2e04\fabric-rendering-data-attachment-v1-0.3.57+73761d2e04.jar, E:\Java-Project\Fabric妯$粍\EnhancedFireworks-1.21.4\.gradle\loom-cache\remapped_mods\net_fabricmc_yarn_1_21_4_1_21_4_build_7_v2\net\fabricmc\fabric-api\fabric-block-view-api-v2\1.0.19+7feeb73304\fabric-block-view-api-v2-1.0.19+7feeb73304.jar, E:\Java-Project\Fabric妯$粍\EnhancedFireworks-1.21.4\.gradle\loom-cache\remapped_mods\net_fabricmc_yarn_1_21_4_1_21_4_build_7_v2\net\fabricmc\fabric-api\fabric-client-gametest-api-v1\3.0.0+1f6471e604\fabric-client-gametest-api-v1-3.0.0+1f6471e604.jar, E:\Java-Project\Fabric妯$粍\EnhancedFireworks-1.21.4\.gradle\loom-cache\remapped_mods\net_fabricmc_yarn_1_21_4_1_21_4_build_7_v2\net\fabricmc\fabric-api\fabric-crash-report-info-v1\0.3.6+7feeb73304\fabric-crash-report-info-v1-0.3.6+7feeb73304.jar, E:\Java-Project\Fabric妯$粍\EnhancedFireworks-1.21.4\.gradle\loom-cache\remapped_mods\net_fabricmc_yarn_1_21_4_1_21_4_build_7_v2\net\fabricmc\fabric-api\fabric-dimensions-v1\4.0.10+7feeb73304\fabric-dimensions-v1-4.0.10+7feeb73304.jar, E:\Java-Project\Fabric妯$粍\EnhancedFireworks-1.21.4\.gradle\loom-cache\remapped_mods\net_fabricmc_yarn_1_21_4_1_21_4_build_7_v2\net\fabricmc\fabric-api\fabric-game-rule-api-v1\1.0.62+7feeb73304\fabric-game-rule-api-v1-1.0.62+7feeb73304.jar, E:\Java-Project\Fabric妯$粍\EnhancedFireworks-1.21.4\.gradle\loom-cache\remapped_mods\net_fabricmc_yarn_1_21_4_1_21_4_build_7_v2\net\fabricmc\fabric-api\fabric-keybindings-v0\0.2.54+df3654b304\fabric-keybindings-v0-0.2.54+df3654b304.jar, E:\Java-Project\Fabric妯$粍\EnhancedFireworks-1.21.4\.gradle\loom-cache\remapped_mods\net_fabricmc_yarn_1_21_4_1_21_4_build_7_v2\net\fabricmc\fabric-api\fabric-key-binding-api-v1\1.0.56+7feeb73304\fabric-key-binding-api-v1-1.0.56+7feeb73304.jar, E:\Java-Project\Fabric妯$粍\EnhancedFireworks-1.21.4\.gradle\loom-cache\remapped_mods\net_fabricmc_yarn_1_21_4_1_21_4_build_7_v2\net\fabricmc\fabric-api\fabric-resource-conditions-api-v1\5.0.13+203e6b2304\fabric-resource-conditions-api-v1-5.0.13+203e6b2304.jar, E:\Java-Project\Fabric妯$粍\EnhancedFireworks-1.21.4\.gradle\loom-cache\remapped_mods\net_fabricmc_yarn_1_21_4_1_21_4_build_7_v2\net\fabricmc\fabric-api\fabric-resource-loader-v0\3.0.11+b1caf1e904\fabric-resource-loader-v0-3.0.11+b1caf1e904.jar, E:\Java-Project\Fabric妯$粍\EnhancedFireworks-1.21.4\.gradle\loom-cache\remapped_mods\net_fabricmc_yarn_1_21_4_1_21_4_build_7_v2\net\fabricmc\fabric-api\fabric-sound-api-v1\1.0.32+7feeb73304\fabric-sound-api-v1-1.0.32+7feeb73304.jar, E:\Java-Project\Fabric妯$粍\EnhancedFireworks-1.21.4\.gradle\loom-cache\remapped_mods\net_fabricmc_yarn_1_21_4_1_21_4_build_7_v2\net\fabricmc\fabric-api\fabric-transitive-access-wideners-v1\6.3.2+56e78b9b04\fabric-transitive-access-wideners-v1-6.3.2+56e78b9b04.jar - the game may not load properly!
[15:33:05] [ERROR] [FabricLoader/GameProvider]: 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.
[15:33:05] [ERROR] [FabricLoader/]: Uncaught exception in thread "main"
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:212)
	at net.fabricmc.loader.impl.launch.knot.Knot.init(Knot.java:130)
	at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:68)
	at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
	at net.fabricmc.devlaunchinjector.Main.main(Main.java:86)

Environment:

  • Minecraft version: 1.21.4
  • Fabric Loader version: 0.16.9
  • IntelliJ IDEA version: 2024.3.1.1
  • Java version: 21

@burningtnt
Copy link

OK so obviously the path E:\Java-Project\Fabric ??? contains non-ASCII characters. You can do any of these tasks:

  • Rename the folders to pure ASCII chracters.
  • Check whether there is a mismatch on the charset of dev-injector.conf and the command line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants