Compiled mod causes errors on start up
AltAccountForNobody opened this issue · 0 comments
I don't understand why the mod refuses to run in a built jar file. The mod runs fine when running in IntelliJ IDEA, however it doesn't work at all when running as a compiled jar file in the .minecraft/mods folder. Can someone help me?
Description: Initializing game
java.lang.RuntimeException: Could not execute entrypoint stage 'main' due to errors, provided by 'modid'!
at net.fabricmc.loader.impl.FabricLoaderImpl.lambda$invokeEntrypoints$2(FabricLoaderImpl.java:388)
at net.fabricmc.loader.impl.util.ExceptionUtil.gatherExceptions(ExceptionUtil.java:33)
at net.fabricmc.loader.impl.FabricLoaderImpl.invokeEntrypoints(FabricLoaderImpl.java:386)
at net.fabricmc.loader.impl.game.minecraft.Hooks.startClient(Hooks.java:52)
at net.minecraft.class_310.<init>(class_310.java:487)
at net.minecraft.client.main.Main.main(Main.java:223)
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:470)
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
Caused by: java.lang.NoClassDefFoundError: net/minecraft/text/Text
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:467)
at net.fabricmc.loader.impl.util.DefaultLanguageAdapter.create(DefaultLanguageAdapter.java:50)
at net.fabricmc.loader.impl.entrypoint.EntrypointStorage$NewEntry.getOrCreate(EntrypointStorage.java:117)
at net.fabricmc.loader.impl.entrypoint.EntrypointContainerImpl.getEntrypoint(EntrypointContainerImpl.java:53)
at net.fabricmc.loader.impl.FabricLoaderImpl.invokeEntrypoints(FabricLoaderImpl.java:384)
... 6 more
Caused by: java.lang.ClassNotFoundException: net.minecraft.text.Text
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.loadClass(KnotClassDelegate.java:226)
at net.fabricmc.loader.impl.launch.knot.KnotClassLoader.loadClass(KnotClassLoader.java:119)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
... 12 more
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Thread: Render thread
Stacktrace:
at net.fabricmc.loader.impl.FabricLoaderImpl.lambda$invokeEntrypoints$2(FabricLoaderImpl.java:388)
at net.fabricmc.loader.impl.util.ExceptionUtil.gatherExceptions(ExceptionUtil.java:33)
at net.fabricmc.loader.impl.FabricLoaderImpl.invokeEntrypoints(FabricLoaderImpl.java:386)
at net.fabricmc.loader.impl.game.minecraft.Hooks.startClient(Hooks.java:52)
at net.minecraft.class_310.<init>(class_310.java:487)
-- Initialization --
Details:
Modules:
ADVAPI32.dll:Advanced Windows 32 Base API:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
COMCTL32.dll:User Experience Controls Library:6.10 (WinBuild.160101.0800):Microsoft Corporation
CRYPT32.dll:Crypto API32:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
CRYPTBASE.dll:Base cryptographic API DLL:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
CRYPTSP.dll:Cryptographic Service Provider API:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
DBGHELP.DLL:Windows Image Helper:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
DNSAPI.dll:DNS Client API DLL:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
GDI32.dll:GDI Client DLL:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
IMM32.DLL:Multi-User Windows IMM32 API Client DLL:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
IPHLPAPI.DLL:IP Helper API:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
KERNEL32.DLL:Windows NT BASE API Client DLL:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
KERNELBASE.dll:Windows NT BASE API Client DLL:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
MpOav.dll:IOfficeAntiVirus Module:4.18.23110.3 (9ebb3643d539a6fc4659898b1df3124d5da4c0a9):Microsoft Corporation
NLAapi.dll:Network Location Awareness 2:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
NSI.dll:NSI User-mode interface DLL:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
NTASN1.dll:Microsoft ASN.1 API:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
Ole32.dll:Microsoft OLE for Windows:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
OleAut32.dll:OLEAUT32.DLL:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
POWRPROF.dll:Power Profile Helper DLL:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
PSAPI.DLL:Process Status Helper:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
Pdh.dll:Windows Performance Data Helper DLL:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
RPCRT4.dll:Remote Procedure Call Runtime:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
SHCORE.dll:SHCORE:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
SHELL32.dll:Windows Shell Common Dll:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
UMPDC.dll
USER32.dll:Multi-User Windows USER API Client DLL:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
USERENV.dll:Userenv:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
VCRUNTIME140.dll:Microsoft® C Runtime Library:14.29.30139.0 built by: vcwrkspc:Microsoft Corporation
VERSION.dll:Version Checking and File Installation Libraries:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
WINHTTP.dll:Windows HTTP Services:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
WINMM.dll:MCI API DLL:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
WS2_32.dll:Windows Socket 2.0 32-Bit DLL:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
WSOCK32.dll:Windows Socket 32-Bit DLL:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
Wldp.dll:Windows Lockdown Policy:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
amsi.dll:Anti-Malware Scan Interface:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
bcrypt.dll:Windows Cryptographic Primitives Library:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
bcryptPrimitives.dll:Windows Cryptographic Primitives Library:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
clbcatq.dll:COM+ Configuration Catalog:2001.12.10941.16384 (WinBuild.160101.0800):Microsoft Corporation
combase.dll:Microsoft COM for Windows:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
dbgcore.DLL:Windows Core Debugging Helpers:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
dhcpcsvc.DLL:DHCP Client Service:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
dhcpcsvc6.DLL:DHCPv6 Client:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
fwpuclnt.dll:FWP/IPsec User-Mode API:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
gdi32full.dll:GDI Client DLL:10.0.19041.3758 (WinBuild.160101.0800):Microsoft Corporation
java.dll:OpenJDK Platform binary:17.0.8.0:Microsoft
javaw.exe:OpenJDK Platform binary:17.0.8.0:Microsoft
jemalloc.dll
jimage.dll:OpenJDK Platform binary:17.0.8.0:Microsoft
jli.dll:OpenJDK Platform binary:17.0.8.0:Microsoft
jna16253225677950722176.dll:JNA native library:6.1.6:Java(TM) Native Access (JNA)
jsvml.dll:OpenJDK Platform binary:17.0.8.0:Microsoft
jvm.dll:OpenJDK 64-Bit server VM:17.0.8.0:Microsoft
kernel.appcore.dll:AppModel API Host:10.0.19041.3758 (WinBuild.160101.0800):Microsoft Corporation
lwjgl.dll
management.dll:OpenJDK Platform binary:17.0.8.0:Microsoft
management_ext.dll:OpenJDK Platform binary:17.0.8.0:Microsoft
msvcp140.dll:Microsoft® C Runtime Library:14.29.30139.0 built by: vcwrkspc:Microsoft Corporation
msvcp_win.dll:Microsoft® C Runtime Library:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
msvcrt.dll:Windows NT CRT DLL:7.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
mswsock.dll:Microsoft Windows Sockets 2.0 Service Provider:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
napinsp.dll:E-mail Naming Shim Provider:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
ncrypt.dll:Windows NCrypt Router:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
net.dll:OpenJDK Platform binary:17.0.8.0:Microsoft
nio.dll:OpenJDK Platform binary:17.0.8.0:Microsoft
ntdll.dll:NT Layer DLL:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
perfos.dll:Windows System Performance Objects DLL:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
pnrpnsp.dll:PNRP Name Space Provider:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
profapi.dll:User Profile Basic API:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
rasadhlp.dll:Remote Access AutoDial Helper:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
rsaenh.dll:Microsoft Enhanced Cryptographic Provider:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
sechost.dll:Host for SCM/SDDL/LSA Lookup APIs:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
shlwapi.dll:Shell Light-weight Utility Library:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
sunmscapi.dll:OpenJDK Platform binary:17.0.8.0:Microsoft
ucrtbase.dll:Microsoft® C Runtime Library:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
vcruntime140_1.dll:Microsoft® C Runtime Library:14.29.30139.0 built by: vcwrkspc:Microsoft Corporation
verify.dll:OpenJDK Platform binary:17.0.8.0:Microsoft
win32u.dll:Win32u:10.0.19041.3930 (WinBuild.160101.0800):Microsoft Corporation
windows.storage.dll:Microsoft WinRT Storage API:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
winrnr.dll:LDAP RnR Provider DLL:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
wshbth.dll:Windows Sockets Helper DLL:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
zip.dll:OpenJDK Platform binary:17.0.8.0:Microsoft
Stacktrace:
at net.minecraft.client.main.Main.main(Main.java:223)
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:470)
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
-- System Details --
Details:
Minecraft Version: 1.20.4
Minecraft Version ID: 1.20.4
Operating System: Windows 10 (amd64) version 10.0
Java Version: 17.0.8, Microsoft
Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Microsoft
Memory: 252797600 bytes (241 MiB) / 469762048 bytes (448 MiB) up to 2147483648 bytes (2048 MiB)
CPUs: 16
Processor Vendor: GenuineIntel
Processor Name: Intel(R) Core(TM) i7-10870H CPU @ 2.20GHz
Identifier: Intel64 Family 6 Model 165 Stepping 2
Microarchitecture: unknown
Frequency (GHz): 2.21
Number of physical packages: 1
Number of physical CPUs: 8
Number of logical CPUs: 16
Graphics card #0 name: Virtual Desktop Monitor
Graphics card #0 vendor: Virtual Desktop, Inc.
Graphics card #0 VRAM (MB): 0.00
Graphics card #0 deviceId: unknown
Graphics card #0 versionInfo: DriverVersion=15.39.56.845
Graphics card #1 name: NVIDIA GeForce RTX 3070 Laptop GPU
Graphics card #1 vendor: NVIDIA (0x10de)
Graphics card #1 VRAM (MB): 4095.00
Graphics card #1 deviceId: 0x24dd
Graphics card #1 versionInfo: DriverVersion=31.0.15.4633
Graphics card #2 name: Intel(R) UHD Graphics
Graphics card #2 vendor: Intel Corporation (0x8086)
Graphics card #2 VRAM (MB): 1024.00
Graphics card #2 deviceId: 0x9bc4
Graphics card #2 versionInfo: DriverVersion=27.20.100.9664
Memory slot #0 capacity (MB): 16384.00
Memory slot #0 clockSpeed (GHz): 3.20
Memory slot #0 type: DDR4
Memory slot #1 capacity (MB): 16384.00
Memory slot #1 clockSpeed (GHz): 3.20
Memory slot #1 type: DDR4
Virtual memory max (MB): 45729.21
Virtual memory used (MB): 30630.84
Swap memory total (MB): 12288.00
Swap memory used (MB): 404.13
JVM Flags: 9 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
Fabric Mods:
cloth-config: Cloth Config v13 13.0.121
cloth-basic-math: cloth-basic-math 0.6.1
fabric-api: Fabric API 0.91.1+1.20.4
fabric-api-base: Fabric API Base 0.4.34+f31bf88132
fabric-api-lookup-api-v1: Fabric API Lookup API (v1) 1.6.44+9468a19d32
fabric-biome-api-v1: Fabric Biome API (v1) 13.0.14+9468a19d32
fabric-block-api-v1: Fabric Block API (v1) 1.0.13+73761d2e32
fabric-block-view-api-v2: Fabric BlockView API (v2) 1.0.2+73761d2e32
fabric-blockrenderlayer-v1: Fabric BlockRenderLayer Registration (v1) 1.1.44+f4b7e42432
fabric-client-tags-api-v1: Fabric Client Tags 1.1.5+86b1264532
fabric-command-api-v1: Fabric Command API (v1) 1.2.39+f71b366f32
fabric-command-api-v2: Fabric Command API (v2) 2.2.18+23e8616e32
fabric-commands-v0: Fabric Commands (v0) 0.2.56+df3654b332
fabric-containers-v0: Fabric Containers (v0) 0.1.80+df3654b332
fabric-content-registries-v0: Fabric Content Registries (v0) 5.0.8+9468a19d32
fabric-convention-tags-v1: Fabric Convention Tags 1.5.8+9468a19d32
fabric-crash-report-info-v1: Fabric Crash Report Info (v1) 0.2.21+f4b7e42432
fabric-data-generation-api-v1: Fabric Data Generation API (v1) 13.1.16+1b2a41bc32
fabric-dimensions-v1: Fabric Dimensions API (v1) 2.1.59+a2e8758a32
fabric-entity-events-v1: Fabric Entity Events (v1) 1.5.26+9468a19d32
fabric-events-interaction-v0: Fabric Events Interaction (v0) 0.6.13+9468a19d32
fabric-events-lifecycle-v0: Fabric Events Lifecycle (v0) 0.2.70+df3654b332
fabric-game-rule-api-v1: Fabric Game Rule API (v1) 1.0.44+6f7ba8f232
fabric-item-api-v1: Fabric Item API (v1) 2.1.33+9468a19d32
fabric-item-group-api-v1: Fabric Item Group API (v1) 4.0.19+f6e85ac232
fabric-key-binding-api-v1: Fabric Key Binding API (v1) 1.0.39+f4b7e42432
fabric-keybindings-v0: Fabric Key Bindings (v0) 0.2.37+df3654b332
fabric-lifecycle-events-v1: Fabric Lifecycle Events (v1) 2.2.28+9468a19d32
fabric-loot-api-v2: Fabric Loot API (v2) 2.1.3+6f9f09e032
fabric-message-api-v1: Fabric Message API (v1) 6.0.3+ebb1549632
fabric-mining-level-api-v1: Fabric Mining Level API (v1) 2.1.58+f4b7e42432
fabric-model-loading-api-v1: Fabric Model Loading API (v1) 1.0.6+9468a19d32
fabric-models-v0: Fabric Models (v0) 0.4.5+9386d8a732
fabric-networking-api-v1: Fabric Networking API (v1) 3.1.1+901470e432
fabric-object-builder-api-v1: Fabric Object Builder API (v1) 13.0.6+a2e8758a32
fabric-particles-v1: Fabric Particles (v1) 1.1.5+f4b7e42432
fabric-recipe-api-v1: Fabric Recipe API (v1) 2.0.14+23e8616e32
fabric-registry-sync-v0: Fabric Registry Sync (v0) 4.0.12+9468a19d32
fabric-renderer-api-v1: Fabric Renderer API (v1) 3.2.2+2034447c32
fabric-renderer-indigo: Fabric Renderer - Indigo 1.5.2+2034447c32
fabric-renderer-registries-v1: Fabric Renderer Registries (v1) 3.2.49+df3654b332
fabric-rendering-data-attachment-v1: Fabric Rendering Data Attachment (v1) 0.3.40+73761d2e32
fabric-rendering-fluids-v1: Fabric Rendering Fluids (v1) 3.0.31+f4b7e42432
fabric-rendering-v0: Fabric Rendering (v0) 1.1.52+df3654b332
fabric-rendering-v1: Fabric Rendering (v1) 3.0.11+9468a19d32
fabric-resource-conditions-api-v1: Fabric Resource Conditions API (v1) 2.3.12+de5c6cca32
fabric-resource-loader-v0: Fabric Resource Loader (v0) 0.11.14+f31bf88132
fabric-screen-api-v1: Fabric Screen API (v1) 2.0.15+f6e85ac232
fabric-screen-handler-api-v1: Fabric Screen Handler API (v1) 1.3.49+9468a19d32
fabric-sound-api-v1: Fabric Sound API (v1) 1.0.15+f4b7e42432
fabric-transfer-api-v1: Fabric Transfer API (v1) 4.0.5+aaf9c96932
fabric-transitive-access-wideners-v1: Fabric Transitive Access Wideners (v1) 5.0.12+1b2a41bc32
fabricloader: Fabric Loader 0.15.0
mixinextras: MixinExtras 0.3.0
java: OpenJDK 64-Bit Server VM 17
modid: MODID 1
minecraft: Minecraft 1.20.4
Launched Version: fabric-loader-0.15.0-1.20.4
Launcher name: minecraft-launcher
Backend library: LWJGL version 3.3.2-snapshot
Backend API: Unknown
Window size: <not initialized>
GL Caps: Using framebuffer using OpenGL 3.2
GL debug messages: <disabled>
Using VBOs: Yes
Is Modded: Definitely; Client brand changed to 'fabric'
Universe: 404
Type: Client (map_client.txt)
Locale: en_US
CPU: <unknown>
Edit:
After some experimentation I found that the issue was in how I was configuring the shadowJar task in my build.gradle
file. I've now fixed the issue.