Posted Saturday at 05:41 PM5 days Hello, I have this lines in my build.gradle, but when I build the mod and start Minecraft with the mod in Modrinth it says Quote java.lang.NoClassDefFoundError: org/java_websocket/server/WebSocketServer Can anyone help me with this problem? jarJar.enable() dependencies { minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}" annotationProcessor("org.spongepowered:mixin:0.8.5-SNAPSHOT:processor") // Forge"s hack fix implementation("net.sf.jopt-simple:jopt-simple:5.0.4") { version { strictly "5.0.4" } } // WebSocket minecraftLibrary "org.java-websocket:Java-WebSocket:1.5.3" jarJar(implementation("org.java-websocket:Java-WebSocket:1.5.3")) }
Sunday at 08:51 AM4 days Change // WebSocket minecraftLibrary "org.java-websocket:Java-WebSocket:1.5.3" jarJar(implementation("org.java-websocket:Java-WebSocket:1.5.3")) to // WebSocket jarJar("org.java-websocket:Java-WebSocket:1.5.3") Try my Modpack >>Link to Curseforge<<
Sunday at 03:28 PM4 days Author Thanks for your answer, but sadly it still doesn't work. Without minecraftLibrary I can't even build the mod and with it I still get the same error.
13 hours ago13 hr Try replacing implementation with minecraftLibrary. Dependencies in the minecraftLibrary configuration are added to your compile and runtime classpaths in ForgeGradle 6.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.