Baritone AI pathfinder

Baritone AI pathfinder

72.7k Downloads

java.lang.ClassNotFoundException: cmt

jiangyin14 opened this issue ยท 11 comments

commented

Some information

Operating system: Windows 11
Java version: Zulu 17.0.14
Minecraft version: 1.20.4 (Fabric)
Baritone version: unoptimized-1.10.2
Other mods (if used): None

Exception, error or logs

// My bad.

Time: 2025-03-21 17:31:31
Description: Unexpected error

java.lang.NoClassDefFoundError: cmt
	at knot//baritone.api.Settings.<init>(Settings.java:207)
	at knot//baritone.api.BaritoneAPI.<clinit>(BaritoneAPI.java:34)
	at knot//top.jiangyin14.minembot.handler.ActionHandler.GotoHandler.gotoCoordinates(GotoHandler.java:92)
	at knot//top.jiangyin14.minembot.handler.ActionHandler.GotoHandler.lambda$handle$0(GotoHandler.java:64)
	at knot//net.minecraft.util.thread.ThreadExecutor.executeTask(ThreadExecutor.java:138)
	at knot//net.minecraft.util.thread.ReentrantThreadExecutor.executeTask(ReentrantThreadExecutor.java:24)
	at knot//net.minecraft.util.thread.ThreadExecutor.runTask(ThreadExecutor.java:112)
	at knot//net.minecraft.util.thread.ThreadExecutor.runTasks(ThreadExecutor.java:101)
	at knot//net.minecraft.client.MinecraftClient.render(MinecraftClient.java:1284)
	at knot//net.minecraft.client.MinecraftClient.run(MinecraftClient.java:889)
	at knot//net.minecraft.client.main.Main.main(Main.java:241)
	at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:480)
	at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
	at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
	at net.fabricmc.devlaunchinjector.Main.main(Main.java:86)
Caused by: java.lang.ClassNotFoundException: cmt
	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)
	... 15 more


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Thread: Render thread
Stacktrace:
	at knot//baritone.api.Settings.<init>(Settings.java:207)
	at knot//baritone.api.BaritoneAPI.<clinit>(BaritoneAPI.java:34)
	at knot//top.jiangyin14.minembot.handler.ActionHandler.GotoHandler.gotoCoordinates(GotoHandler.java:92)
	at knot//top.jiangyin14.minembot.handler.ActionHandler.GotoHandler.lambda$handle$0(GotoHandler.java:64)
	at knot//net.minecraft.util.thread.ThreadExecutor.executeTask(ThreadExecutor.java:138)
	at knot//net.minecraft.util.thread.ReentrantThreadExecutor.executeTask(ReentrantThreadExecutor.java:24)
	at knot//net.minecraft.util.thread.ThreadExecutor.runTask(ThreadExecutor.java:112)

-- Uptime --
Details:
	JVM uptime: 46.677s
	Wall uptime: 32.345s
	High-res time: 29.843s
	Client ticks: 370 ticks / 18.500s
Stacktrace:
	at knot//net.minecraft.client.MinecraftClient.addDetailsToCrashReport(MinecraftClient.java:2532)
	at knot//net.minecraft.client.MinecraftClient.printCrashReport(MinecraftClient.java:1000)
	at knot//net.minecraft.client.MinecraftClient.run(MinecraftClient.java:910)
	at knot//net.minecraft.client.main.Main.main(Main.java:241)
	at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:480)
	at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
	at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
	at net.fabricmc.devlaunchinjector.Main.main(Main.java:86)

-- Affected level --
Details:
	All players: 1 total; [ClientPlayerEntity['Player90'/65, l='ClientLevel', x=9978.77, y=75.00, z=9973.34]]
	Chunk stats: 529, 313
	Level dimension: minecraft:overworld
	Level spawn location: World: (-48,72,64), Section: (at 0,8,0 in -3,4,4; chunk contains blocks -48,-64,64 to -33,319,79), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,-64,0 to -1,319,511)
	Level time: 83141 game time, 47242 day time
	Server brand: fabric
	Server type: Integrated singleplayer server
	Tracked entity count: 197

-- Last reload --
Details:
	Reload number: 1
	Reload reason: initial
	Finished: Yes
	Packs: vanilla, fabric, fabric-api, fabric-api-base, fabric-api-lookup-api-v1, fabric-biome-api-v1, fabric-block-api-v1, fabric-block-view-api-v2, fabric-blockrenderlayer-v1, fabric-client-tags-api-v1, fabric-command-api-v1, fabric-command-api-v2, fabric-commands-v0, fabric-containers-v0, fabric-content-registries-v0, fabric-convention-tags-v1, fabric-crash-report-info-v1, fabric-data-attachment-api-v1, fabric-data-generation-api-v1, fabric-dimensions-v1, fabric-entity-events-v1, fabric-events-interaction-v0, fabric-events-lifecycle-v0, fabric-game-rule-api-v1, fabric-gametest-api-v1, fabric-item-api-v1, fabric-item-group-api-v1, fabric-key-binding-api-v1, fabric-keybindings-v0, fabric-lifecycle-events-v1, fabric-loot-api-v2, fabric-message-api-v1, fabric-mining-level-api-v1, fabric-model-loading-api-v1, fabric-models-v0, fabric-networking-api-v1, fabric-object-builder-api-v1, fabric-particles-v1, fabric-recipe-api-v1, fabric-registry-sync-v0, fabric-renderer-api-v1, fabric-renderer-indigo, fabric-renderer-registries-v1, fabric-rendering-data-attachment-v1, fabric-rendering-fluids-v1, fabric-rendering-v0, fabric-rendering-v1, fabric-resource-conditions-api-v1, fabric-resource-loader-v0, fabric-screen-api-v1, fabric-screen-handler-api-v1, fabric-sound-api-v1, fabric-transfer-api-v1, fabric-transitive-access-wideners-v1, fabricloader, minembot

-- System Details --
Details:
	Minecraft Version: 1.20.4
	Minecraft Version ID: 1.20.4
	Operating System: Windows 11 (amd64) version 10.0
	Java Version: 17.0.14, Azul Systems, Inc.
	Java VM Version: OpenJDK 64-Bit Server VM (mixed mode, sharing), Azul Systems, Inc.
	Memory: 992302080 bytes (946 MiB) / 2797600768 bytes (2668 MiB) up to 8493465600 bytes (8100 MiB)
	CPUs: 32
	Processor Vendor: GenuineIntel
	Processor Name: Intel(R) Core(TM) i9-14900HX
	Identifier: Intel64 Family 6 Model 183 Stepping 1
	Microarchitecture: unknown
	Frequency (GHz): 2.42
	Number of physical packages: 1
	Number of physical CPUs: 24
	Number of logical CPUs: 32
	Graphics card #0 name: Intel(R) UHD Graphics
	Graphics card #0 vendor: Intel Corporation (0x8086)
	Graphics card #0 VRAM (MB): 2048.00
	Graphics card #0 deviceId: 0xa788
	Graphics card #0 versionInfo: DriverVersion=32.0.101.5768
	Graphics card #1 name: NVIDIA GeForce RTX 4070 Laptop GPU
	Graphics card #1 vendor: NVIDIA (0x10de)
	Graphics card #1 VRAM (MB): 4095.00
	Graphics card #1 deviceId: 0x2860
	Graphics card #1 versionInfo: DriverVersion=32.0.15.7216
	Memory slot #0 capacity (MB): 16384.00
	Memory slot #0 clockSpeed (GHz): 5.60
	Memory slot #0 type: Unknown
	Memory slot #1 capacity (MB): 16384.00
	Memory slot #1 clockSpeed (GHz): 5.60
	Memory slot #1 type: Unknown
	Virtual memory max (MB): 79490.48
	Virtual memory used (MB): 53873.32
	Swap memory total (MB): 47104.00
	Swap memory used (MB): 1716.58
	JVM Flags: 0 total; 
	Fabric Mods: 
		fabric-api: Fabric API 0.97.2+1.20.4
		fabric-api-base: Fabric API Base 0.4.37+78d798af4f
		fabric-api-lookup-api-v1: Fabric API Lookup API (v1) 1.6.50+82b1bb3e4f
		fabric-biome-api-v1: Fabric Biome API (v1) 13.0.17+78d798af4f
		fabric-block-api-v1: Fabric Block API (v1) 1.0.17+3e2216cb4f
		fabric-block-view-api-v2: Fabric BlockView API (v2) 1.0.5+78d798af4f
		fabric-blockrenderlayer-v1: Fabric BlockRenderLayer Registration (v1) 1.1.47+78d798af4f
		fabric-client-tags-api-v1: Fabric Client Tags 1.1.8+78d798af4f
		fabric-command-api-v1: Fabric Command API (v1) 1.2.42+f71b366f4f
		fabric-command-api-v2: Fabric Command API (v2) 2.2.21+78d798af4f
		fabric-commands-v0: Fabric Commands (v0) 0.2.59+df3654b34f
		fabric-containers-v0: Fabric Containers (v0) 0.1.88+df3654b34f
		fabric-content-registries-v0: Fabric Content Registries (v0) 5.0.16+78d798af4f
		fabric-convention-tags-v1: Fabric Convention Tags 1.5.11+78d798af4f
		fabric-crash-report-info-v1: Fabric Crash Report Info (v1) 0.2.24+78d798af4f
		fabric-data-attachment-api-v1: Fabric Data Attachment API (v1) 1.1.5+b90db5744f
		fabric-data-generation-api-v1: Fabric Data Generation API (v1) 13.2.6+5c0133444f
		fabric-dimensions-v1: Fabric Dimensions API (v1) 2.1.63+6605d1a84f
		fabric-entity-events-v1: Fabric Entity Events (v1) 1.6.2+09fc25014f
		fabric-events-interaction-v0: Fabric Events Interaction (v0) 0.7.2+389931eb4f
		fabric-events-lifecycle-v0: Fabric Events Lifecycle (v0) 0.2.75+df3654b34f
		fabric-game-rule-api-v1: Fabric Game Rule API (v1) 1.0.47+78d798af4f
		fabric-gametest-api-v1: Fabric Game Test API (v1) 1.3.6+85d85a934f
		fabric-item-api-v1: Fabric Item API (v1) 2.3.0+bcdd12964f
		fabric-item-group-api-v1: Fabric Item Group API (v1) 4.0.27+ee30b13a4f
		fabric-key-binding-api-v1: Fabric Key Binding API (v1) 1.0.42+78d798af4f
		fabric-keybindings-v0: Fabric Key Bindings (v0) 0.2.40+df3654b34f
		fabric-lifecycle-events-v1: Fabric Lifecycle Events (v1) 2.3.1+a67ffb5d4f
		fabric-loot-api-v2: Fabric Loot API (v2) 2.1.10+78d798af4f
		fabric-message-api-v1: Fabric Message API (v1) 6.0.6+78d798af4f
		fabric-mining-level-api-v1: Fabric Mining Level API (v1) 2.1.66+78d798af4f
		fabric-model-loading-api-v1: Fabric Model Loading API (v1) 1.0.9+78d798af4f
		fabric-models-v0: Fabric Models (v0) 0.4.8+9386d8a74f
		fabric-networking-api-v1: Fabric Networking API (v1) 3.1.9+6abb6a4b4f
		fabric-object-builder-api-v1: Fabric Object Builder API (v1) 13.1.0+dba1195c4f
		fabric-particles-v1: Fabric Particles (v1) 1.1.8+78d798af4f
		fabric-recipe-api-v1: Fabric Recipe API (v1) 2.0.22+78d798af4f
		fabric-registry-sync-v0: Fabric Registry Sync (v0) 4.0.21+ee30b13a4f
		fabric-renderer-api-v1: Fabric Renderer API (v1) 3.2.5+78d798af4f
		fabric-renderer-indigo: Fabric Renderer - Indigo 1.5.6+d331d3144f
		fabric-renderer-registries-v1: Fabric Renderer Registries (v1) 3.2.54+df3654b34f
		fabric-rendering-data-attachment-v1: Fabric Rendering Data Attachment (v1) 0.3.43+73761d2e4f
		fabric-rendering-fluids-v1: Fabric Rendering Fluids (v1) 3.1.2+e761c6694f
		fabric-rendering-v0: Fabric Rendering (v0) 1.1.57+df3654b34f
		fabric-rendering-v1: Fabric Rendering (v1) 3.2.1+6fd945a04f
		fabric-resource-conditions-api-v1: Fabric Resource Conditions API (v1) 2.3.15+78d798af4f
		fabric-resource-loader-v0: Fabric Resource Loader (v0) 0.11.21+ee30b13a4f
		fabric-screen-api-v1: Fabric Screen API (v1) 2.0.18+78d798af4f
		fabric-screen-handler-api-v1: Fabric Screen Handler API (v1) 1.3.57+78d798af4f
		fabric-sound-api-v1: Fabric Sound API (v1) 1.0.18+78d798af4f
		fabric-transfer-api-v1: Fabric Transfer API (v1) 4.0.12+90f2d7b14f
		fabric-transitive-access-wideners-v1: Fabric Transitive Access Wideners (v1) 5.0.15+78d798af4f
		fabricloader: Fabric Loader 0.16.10
		java: OpenJDK 64-Bit Server VM 17
		minecraft: Minecraft 1.20.4
		minembot: MineMBot 0.1-1.20.4
		mixinextras: MixinExtras 0.4.1
	Launched Version: Fabric
	Backend library: LWJGL version 3.3.2-snapshot
	Backend API: NVIDIA GeForce RTX 4070 Laptop GPU/PCIe/SSE2 GL version 3.2.0 NVIDIA 572.16, NVIDIA Corporation
	Window size: 854x480
	GL Caps: Using framebuffer using OpenGL 3.2
	GL debug messages: 
	Using VBOs: Yes
	Is Modded: Definitely; Client brand changed to 'fabric'; Server brand changed to 'fabric'
	Universe: 400921fb54442d18
	Type: Integrated Server (map_client.txt)
	Graphics mode: fast
	Render Distance: 8/8 chunks
	Resource Packs: fabric
	Current Language: en_us
	Locale: zh_CN
	CPU: 32x Intel(R) Core(TM) i9-14900HX
	Server Running: true
	Player Count: 1 / 8; [ServerPlayerEntity['Player90'/65, l='ServerLevel[New World]', x=9978.77, y=75.00, z=9973.34]]
	Data Packs: vanilla, fabric, fabric-convention-tags-v1, fabric-gametest-api-v1
	Enabled Feature Flags: minecraft:vanilla
	World Generation: Stable
#@!@# Game crashed! Crash report saved to: #@!@# C:\Users\12194\Desktop\Projects\IdeaProjects\MineMBot\run\crash-reports\crash-2025-03-21_17.31.31-client.txt

> Task :runClient FAILED

How to reproduce

Trigger gotoCoordinates in below codes

     * Sets a goal to navigate to the specified coordinates
     * @param x X coordinate
     * @param z Z coordinate
     */
    private void gotoCoordinates(int x, int z) {
        Goal goal = new GoalXZ(x, z);
        BaritoneAPI.getProvider().getPrimaryBaritone().getCustomGoalProcess().setGoalAndPath(goal); 

Modified settings

No Display

Final checklist

  • I know how to properly use check boxes
  • I have included the version of Minecraft I'm running, baritone's version and forge mods (if used).
  • I have included logs, exceptions and / or steps to reproduce the issue.
  • I have not used any OwO's or UwU's in this issue.
commented

For unoptimized-1.11.1 on Azul-21.0.6 running in MC Fabric 1.20.4 reports the same thing and the class name reported as cxl
Caused by: java.lang.ClassNotFoundException: cxl

commented

You are probably using the wrong jar. Make sure fabric is in its file name

commented

Thank you for replying my issue so fast and your unimined is so great.

I've tried the baritone-api-fabric-1.10.2.jar but it throws tons of ERRO and WARN while entering an singleplayer world.
latest.log

commented

jiangyin14/MineMBot

commented

hmm... it would seem that fabric isn't remapping the mixins at runtime like it's supposed to what does your build.gradle look like?

commented

I'd guess that you should try using modImplementation instead of implementation. (Note that I never used loom myself)

commented

ok i'll try it later
btw i don't know this at all

commented

ok i tried the modImplementation and a new error came out like

Image

commented
java.lang.NoClassDefFoundError: dev/babbaj/pathfinder/NetherPathfinder
	at knot//baritone.eo.a(Unknown Source)
	at knot//baritone.dy.a(Unknown Source)
	at knot//baritone.a.a(Unknown Source)
	at knot//baritone.a.<init>(Unknown Source)
	at knot//baritone.BaritoneProvider.createBaritone(Unknown Source)
	at knot//baritone.BaritoneProvider.<init>(Unknown Source)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500)
	at java.base/java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128)
	at java.base/jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347)
	at java.base/java.lang.Class.newInstance(Class.java:645)
	at knot//baritone.api.BaritoneAPI.<clinit>(Unknown Source)
	at knot//net.minecraft.client.MinecraftClient.handler$zla000$baritone$postInit(MinecraftClient.java)
	at knot//net.minecraft.client.MinecraftClient.<init>(MinecraftClient.java:720)
	at knot//net.minecraft.client.main.Main.main(Main.java:204)
	at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:480)
	at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
	at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
	at net.fabricmc.devlaunchinjector.Main.main(Main.java:86)
Caused by: java.lang.ClassNotFoundException: dev.babbaj.pathfinder.NetherPathfinder
	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)
	... 21 more 
commented

problem solved by adding downloading jarfile at this page and add implementation files("lib/nether-pathfinder-1.5.jar") in build.gradle

commented