Help i just started making my first minecraft fabric mod

So i was setting up the basics and the tutorial said i haid to ron the client (Gradle>tasks>fabric>runClient

and now it’s giving me an error and even if I change everything to 16 it still gives the error
19:55:10: Executing ‘runClient’…

Starting Gradle Daemon…
Gradle Daemon started in 8 s 909 ms

Configure project :
Fabric Loom: 0.10.66

Task :compileJava FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:compileJava’.

error: release version 17 not supported

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

BUILD FAILED in 47s
1 actionable task: 1 executed
19:55:58: Execution finished ‘runClient’

I think the project requires Java 17, but you’re using an older version. Try updating the JDK on your machine (or reconfigure which JDK should be used).

1 Like

thanks it was actually the SDK that was still on 16 so i updated it to 17 and now it works!

1 Like

welp it broke again
i now have a new error

Task :runClient
[15:48:38] [main/INFO] (FabricLoader/GameProvider) Loading Minecraft 1.18.1 with Fabric Loader 0.12.12
[15:48:39] [main/INFO] (FabricLoader) Loading 51 mods:
- fabric 0.44.0+1.18
- fabric-api-base 0.4.1+b4f4f6cdc8
- fabric-api-lookup-api-v1 1.4.0+16d92c47c8
- fabric-biome-api-v1 6.0.1+ded849a9c8
- fabric-blockrenderlayer-v1 1.1.9+3ac43d95c8
- fabric-command-api-v1 1.1.6+3ac43d95c8
- fabric-commands-v0 0.2.5+b4f4f6cdc8
- fabric-containers-v0 0.1.18+d154e2c6c8
- fabric-content-registries-v0 0.4.5+6f53a73dc8
- fabric-crash-report-info-v1 0.1.8+3ac43d95c8
- fabric-data-generation-api-v1 1.0.0+3fec4ad9c8
- fabric-dimensions-v1 2.1.7+43d29571c8
- fabric-entity-events-v1 1.4.5+6b21378ac8
- fabric-events-interaction-v0 0.4.16+bfa23f17c8
- fabric-events-lifecycle-v0 0.2.6+b4f4f6cdc8
- fabric-game-rule-api-v1 1.0.10+3ac43d95c8
- fabric-gametest-api-v1 1.0.5+03d159cfc8
- fabric-item-api-v1 1.3.0+691a79b5c8
- fabric-item-groups-v0 0.3.3+3ac43d95c8
- fabric-key-binding-api-v1 1.0.8+c8aba2f3c8
- fabric-keybindings-v0 0.2.6+b4f4f6cdc8
- fabric-lifecycle-events-v1 1.4.10+c15ca335c8
- fabric-loot-tables-v1 1.0.8+3ac43d95c8
- fabric-mining-level-api-v1 1.0.3+3ac43d95c8
- fabric-mining-levels-v0 0.1.7+b4f4f6cdc8
- fabric-models-v0 0.3.3+3ac43d95c8
- fabric-networking-api-v1 1.0.18+3ac43d95c8
- fabric-networking-v0 0.3.5+b4f4f6cdc8
- fabric-object-builder-api-v1 1.11.0+3b82842ec8
- fabric-object-builders-v0 0.7.8+3ac43d95c8
- fabric-particles-v1 0.2.9+526dc1acc8
- fabric-registry-sync-v0 0.8.5+3ac43d95c8
- fabric-renderer-api-v1 0.4.9+3ac43d95c8
- fabric-renderer-indigo 0.4.12+3ac43d95c8
- fabric-renderer-registries-v1 3.2.7+b4f4f6cdc8
- fabric-rendering-data-attachment-v1 0.3.4+7242e9d7c8
- fabric-rendering-fluids-v1 0.1.18+3ac43d95c8
- fabric-rendering-v0 1.1.9+b4f4f6cdc8
- fabric-rendering-v1 1.10.3+6b21378ac8
- fabric-resource-loader-v0 0.4.11+3ac43d95c8
- fabric-screen-api-v1 1.0.7+3ac43d95c8
- fabric-screen-handler-api-v1 1.1.11+3ac43d95c8
- fabric-structure-api-v1 2.0.8+295197a7c8
- fabric-tag-extensions-v0 1.2.5+3ac43d95c8
- fabric-textures-v0 1.0.9+3ac43d95c8
- fabric-tool-attribute-api-v1 1.3.4+7de09f55c8
- fabric-transfer-api-v1 1.5.5+b4f4f6cdc8
- fabricloader 0.12.12
- java 17
- minecraft 1.18.1
- myfirstmod 1.18.1-0.0.1
[15:48:39] [main/INFO] (FabricLoader/Mixin) SpongePowered MIXIN Subsystem Version=0.8.4 Source=file:/C:/Users/owim2/.gradle/caches/modules-2/files-2.1/net.fabricmc/sponge-mixin/0.10.7+mixin.0.8.4/7a4ca9d54d9ae564dea0363d668036a8420ed9b8/sponge-mixin-0.10.7+mixin.0.8.4.jar Service=Knot/Fabric Env=CLIENT
[15:48:40] [main/INFO] (FabricLoader/Mixin) Loaded Fabric development mappings for mixin remapper!
[15:48:40] [main/INFO] (FabricLoader/Mixin) Compatibility level set to JAVA_16
[15:48:44] [main/WARN] (PerfDataUtil) Failed to add PDH Counter: \Paging File(_Total)% Usage, Error code: 0x800007D0
[15:48:44] [main/WARN] (PerfCounterQueryHandler) Failed to add counter for PDH counter: \Paging File(_Total)% Usage
[15:48:44] [main/WARN] (PerfCounterQuery) Disabling further attempts to query Paging File.
[15:48:44] [main/WARN] (WmiQueryHandler) COM exception: Invalid Query: SELECT PERCENTUSAGE FROM Win32_PerfRawData_PerfOS_PagingFile
[15:48:50] [main/WARN] (FabricLoader/Mixin) @Inject(@At(“INVOKE”)) Shift.BY=3 on fabric-lifecycle-events-v1.mixins.json:client.WorldChunkMixin::handler$zic000$onLoadBlockEntity exceeds the maximum allowed value: 0. Increase the value of maxShiftBy to suppress this warning.
[15:48:59] [Render thread/INFO] (Minecraft) Environment: authHost=‘https://authserver.mojang.com’, accountsHost=‘https://api.mojang.com’, sessionHost=‘https://sessionserver.mojang.com’, servicesHost=‘https://api.minecraftservices.com’, name=‘PROD’
[15:49:03] [Render thread/ERROR] (Minecraft) Failed to verify authentication
com.mojang.authlib.exceptions.InvalidCredentialsException: Status: 401
at com.mojang.authlib.exceptions.MinecraftClientHttpException.toAuthenticationException(MinecraftClientHttpException.java:56) ~[authlib-3.2.38.jar:?]
at com.mojang.authlib.yggdrasil.YggdrasilUserApiService.fetchProperties(YggdrasilUserApiService.java:132) ~[authlib-3.2.38.jar:?]
at com.mojang.authlib.yggdrasil.YggdrasilUserApiService.(YggdrasilUserApiService.java:44) ~[authlib-3.2.38.jar:?]
at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.createUserApiService(YggdrasilAuthenticationService.java:153) ~[authlib-3.2.38.jar:?]
at net.minecraft.client.MinecraftClient.createUserApiService(MinecraftClient.java:670) [minecraft-project-@-mapped.jar:?]
at net.minecraft.client.MinecraftClient.(MinecraftClient.java:424) [minecraft-project-@-mapped.jar:?]
at net.minecraft.client.main.Main.main(Main.java:199) [minecraft-project-@-mapped.jar:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:608) [fabric-loader-0.12.12.jar:?]
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:77) [fabric-loader-0.12.12.jar:?]
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23) [fabric-loader-0.12.12.jar:?]
at net.fabricmc.devlaunchinjector.Main.main(Main.java:86) [dev-launch-injector-0.2.1+build.8.jar:?]
Caused by: com.mojang.authlib.exceptions.MinecraftClientHttpException: Status: 401
at com.mojang.authlib.minecraft.client.MinecraftClient.readInputStream(MinecraftClient.java:78) ~[authlib-3.2.38.jar:?]
at com.mojang.authlib.minecraft.client.MinecraftClient.get(MinecraftClient.java:48) ~[authlib-3.2.38.jar:?]
at com.mojang.authlib.yggdrasil.YggdrasilUserApiService.fetchProperties(YggdrasilUserApiService.java:113) ~[authlib-3.2.38.jar:?]
… 13 more
[15:49:03] [Render thread/INFO] (Minecraft) Setting user: Player224
Caused by: com.mojang.authlib.exceptions.MinecraftClientHttpException: Status: 401

[15:49:06] [Render thread/INFO] (MOD_ID) Registering Mod Items for myfirstmod
[15:49:07] [Render thread/INFO] (Indigo) [Indigo] Registering Indigo renderer!
[15:49:13] [Render thread/INFO] (Minecraft) Backend library: LWJGL version 3.2.2 build 10
[15:49:35] [Render thread/INFO] (Minecraft) Narrator library for x86 successfully loaded
[15:49:38] [Render thread/INFO] (Minecraft) Reloading ResourceManager: Default, Fabric Mods (Fabric API Lookup API (v1), Fabric Content Registries (v0), Fabric Registry Sync (v0), Fabric Structure API (v1), Fabric Tag Extensions (v0), Fabric BlockRenderLayer Registration (v1), Fabric Renderer - Indigo, Fabric Models (v0), Fabric Commands (v0), Fabric Object Builders (v0), Fabric Mining Level API (v1), Fabric Screen Handler API (v1), Fabric Containers (v0), Fabric Rendering Data Attachment (v1), Fabric Game Test API (v1), Fabric Command API (v1), Fabric Mining Levels (v0), Fabric Networking API (v1), Fabric Particles (v1), Fabric Events Interaction (v0), Fabric Renderer API (v1), Fabric Rendering (v1), Fabric Key Binding API (v1), Fabric API, Fabric Rendering (v0), Fabric Loot Tables (v1), Fabric Object Builder API (v1), Fabric Entity Events (v1), Fabric Tool Attribute API (v1), Fabric Biome API (v1), Fabric Data Generation API (v1), Fabric Key Bindings (v0), Fabric Item API (v1), Fabric Networking (v0), Fabric Crash Report Info (v1), Fabric Renderer Registries (v1), Fabric Game Rule API (v1), Fabric Textures (v0), Fabric Resource Loader (v0), Fabric Item Groups (v0), Fabric API Base, Fabric Loader, Fabric Lifecycle Events (v1), Fabric Transfer API (v1), Fabric Dimensions API (v1), Fabric Rendering Fluids (v1), My First Mod, Fabric Screen API (v1), Fabric Events Lifecycle (v0))
[15:49:40] [Render thread/INFO] (MOD_ID) This line is printed by an example mod mixin!
[15:49:45] [Realms Notification Availability checker #1/INFO] (Minecraft) Could not authorize you against Realms server: Invalid session id
[15:52:18] [Render thread/INFO] (Minecraft) Caught error loading resourcepacks, removing all selected resourcepacks
java.util.concurrent.CompletionException: java.lang.OutOfMemoryError: Java heap space
at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315) ~[?:?]
at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1770) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760) ~[?:?]
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[?:?]
at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) ~[?:?]
at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) ~[?:?]
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) ~[?:?]
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[?:?]
Caused by: java.lang.OutOfMemoryError: Java heap space
at jdk.internal.org.objectweb.asm.ByteVector.(ByteVector.java:86) ~[?:?]
at jdk.internal.org.objectweb.asm.ClassWriter.toByteArray(ClassWriter.java:642) ~[?:?]
at java.lang.invoke.InnerClassLambdaMetafactory.generateInnerClass(InnerClassLambdaMetafactory.java:386) ~[?:?]
at java.lang.invoke.InnerClassLambdaMetafactory.spinInnerClass(InnerClassLambdaMetafactory.java:315) ~[?:?]
at java.lang.invoke.InnerClassLambdaMetafactory.buildCallSite(InnerClassLambdaMetafactory.java:228) ~[?:?]
Caused by: java.lang.OutOfMemoryError: Java heap space

at java.lang.invoke.LambdaMetafactory.metafactory(LambdaMetafactory.java:341) ~[?:?]
at java.lang.invoke.LambdaForm$DMH/0x172c82c0.invokeStatic(LambdaForm$DMH) ~[?:?]
at java.lang.invoke.Invokers$Holder.invokeExact_MT(Invokers$Holder) ~[?:?]
at java.lang.invoke.BootstrapMethodInvoker.invoke(BootstrapMethodInvoker.java:134) ~[?:?]
at java.lang.invoke.CallSite.makeSite(CallSite.java:315) ~[?:?]
at java.lang.invoke.MethodHandleNatives.linkCallSiteImpl(MethodHandleNatives.java:281) ~[?:?]
at java.lang.invoke.MethodHandleNatives.linkCallSite(MethodHandleNatives.java:271) ~[?:?]
at net.minecraft.client.render.model.ModelLoader.loadModel(ModelLoader.java:422) ~[minecraft-project-@-mapped.jar:?]
at net.minecraft.client.render.model.ModelLoader.getOrLoadModel(ModelLoader.java:323) ~[minecraft-project-@-mapped.jar:?]
at net.minecraft.client.render.model.ModelLoader.addModel(ModelLoader.java:462) ~[minecraft-project-@-mapped.jar:?]
at net.minecraft.client.render.model.ModelLoader.method_4716(ModelLoader.java:204) ~[minecraft-project-@-mapped.jar:?]
at net.minecraft.client.render.model.ModelLoader$$Lambda$4014/0x26cc51d0.accept(Unknown Source) ~[?:?]
at com.google.common.collect.ImmutableList.forEach(ImmutableList.java:422) ~[guava-31.0.1-jre.jar:?]
at net.minecraft.client.render.model.ModelLoader.<init>(ModelLoader.java:204) ~[minecraft-project-@-mapped.jar:?]
at net.minecraft.client.render.model.BakedModelManager.prepare(BakedModelManager.java:52) ~[minecraft-project-@-mapped.jar:?]
at net.minecraft.client.render.model.BakedModelManager.prepare(BakedModelManager.java:19) ~[minecraft-project-@-mapped.jar:?]
at net.minecraft.resource.SinglePreparationResourceReloader.method_18791(SinglePreparationResourceReloader.java:11) ~[minecraft-project-@-mapped.jar:?]
at net.minecraft.resource.SinglePreparationResourceReloader$$Lambda$3857/0x26c1c000.get(Unknown Source) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
... 6 more

[15:52:23] [Render thread/INFO] (Minecraft) Reloading ResourceManager: Default, Fabric Mods (Fabric API Lookup API (v1), Fabric Content Registries (v0), Fabric Registry Sync (v0), Fabric Structure API (v1), Fabric Tag Extensions (v0), Fabric BlockRenderLayer Registration (v1), Fabric Renderer - Indigo, Fabric Models (v0), Fabric Commands (v0), Fabric Object Builders (v0), Fabric Mining Level API (v1), Fabric Screen Handler API (v1), Fabric Containers (v0), Fabric Rendering Data Attachment (v1), Fabric Game Test API (v1), Fabric Command API (v1), Fabric Mining Levels (v0), Fabric Networking API (v1), Fabric Particles (v1), Fabric Events Interaction (v0), Fabric Renderer API (v1), Fabric Rendering (v1), Fabric Key Binding API (v1), Fabric API, Fabric Rendering (v0), Fabric Loot Tables (v1), Fabric Object Builder API (v1), Fabric Entity Events (v1), Fabric Tool Attribute API (v1), Fabric Biome API (v1), Fabric Data Generation API (v1), Fabric Key Bindings (v0), Fabric Item API (v1), Fabric Networking (v0), Fabric Crash Report Info (v1), Fabric Renderer Registries (v1), Fabric Game Rule API (v1), Fabric Textures (v0), Fabric Resource Loader (v0), Fabric Item Groups (v0), Fabric API Base, Fabric Loader, Fabric Lifecycle Events (v1), Fabric Transfer API (v1), Fabric Dimensions API (v1), Fabric Rendering Fluids (v1), My First Mod, Fabric Screen API (v1), Fabric Events Lifecycle (v0))
[15:52:23] [Render thread/INFO] (MOD_ID) This line is printed by an example mod mixin!
[15:57:48] [Render thread/INFO] (Minecraft) Stopping!

Task :runClient FAILED

Execution failed for task ‘:runClient’.

Build cancelled while executing task ‘:runClient’

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.